Professional UI Solutions
Site Map   /  Register


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 General Discussion » Leaving edit Mode in CExtGridCellString with Esc key closes the dialog with the CExtGridWnd Collapse All
Subject Author Date
Rolf Gwerder Dec 23, 2011 - 8:22 AM

Hello I am using the CExtGridWnd in my dialog, as grid cells I use the CExtGridCellString, the CExtGridCellNumber and other cell from different types.

When I enter the edit mode of the CExtGridCellNumber cell, edit the value and leave the edit mode by pressing the ’Esc’ key, the inplace editor window is closed and the edit value is NOT saved.

When I enter the edit mode of the CExtGridCellString cell, edit the value and leave the edit mode by pressing the ’Esc’ key, the whole dialog is closing.

Does anybody know how I could get the same behaviour for the CExtGridCellString as for CExtGridCellNumber cell for the ’Esc’ key?

I have not noticed that the CExtGridInplaceEdit::WindowProc() function handles the ’WM_KILLFOCUS’ for the CExtGridCellEdit and the ’WM_KEYDOWN’ message with the ’VK_ESCAPE’ wParam parameter value for the CExtGridCellNumber cell.<o:p></o:p>


Thanks a lot for your help.

kind regards,


Rolf Gwerder Jan 3, 2012 - 1:39 AM

I have noticed, that this problem occurs only if the ’__EGCS_EX_WRAP_TEXT’ style is set.

It seems that the CExtGrid does then not handle the event and then the event is passed to the dialog which contains the grid.

Any idea, how to solve the problem?