Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtCmdItem drop-down list height Collapse All
Subject Author Date
Sergio Buonanno Apr 6, 2006 - 6:43 AM

I have a CExtCmdItem object set as combo on the menu bar, but when it displays the drop-down list the height of the list is fixed and it’s too big. Is there the possibility to have a drop-down list with dynamic height that can fit the number of contained items as a standard Windows combo control ?

Technical Support Apr 6, 2006 - 10:23 AM

This can be done by overriding the CExtCustomizeSite::OnPopupListBoxMeasureTrackSize() virtual method in your CMainFrame class and measuring all items in the list. The StyleEditor sample demonstrates how to do this.