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 » OnGridCellInputComplete: DropDown list stays visible while showing messge box Collapse All
Subject Author Date
Adrian Ineichen Jul 6, 2010 - 12:48 AM

Hi


I use an CExtGridCellComboBox in a CExtGridWnd. In the method OnGridCellInputComplete I get the item data of the _cell parameter (which is a pointer in my case) and work with the referenced object. Now during this processing, an error can occur. This error I show within a message box.


The problem is: when the message box appears, the drop down list of the comboBox grid cell is still visible. It disappears when I click somewhere else on the screen. This is very annoying for I need two clicks to confirm the message box: The first lets disappear the drop down list and second will be accepted by the message box.


We use v2.70


Thanks


Christian Herger

Technical Support Jul 6, 2010 - 6:57 AM

The popup list box is a popup menu with a list box common control inside. The CExtPopupMenuWnd::CancelMenuTracking() static method closes any currently opened popup menus. You should invoke it before displaying a message box.