|
|
|
|
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.
Subject |
Author |
Date |
|
Eike Loch
|
Nov 22, 2004 - 8:39 AM
|
How i can continue the editmode, if verify the text input in OnInplaceControlTextInputVerify is fail. I would like test the values, if bEndEdit = true.
|
|
Technical Support
|
Nov 23, 2004 - 9:39 AM
|
To prevent the inplace edit control from being destroyed, you need to override the CExtGridCell::OnInplaceControlWindowProc virtual method rather than to use CExtGridCell::OnInplaceControlTextInputVerify() . Your method should analyze whether the message is WM_KEYDOWN and, is it is the case, put zero into lResult and return true if wParam contains VK_RETURN , VK_ESCAPE , or VK_TAB . For all other cases (not dealt with preventing the edit control from being destroyed), your method should return false . If your grid uses the walking editor, then your OnInplaceControlWindowProc method should also analyze VK_UP , VK_DOWN , VK_LEFT , and VK_RIGHT keys.
|
|