|| | |||Browse by category|
When I hit [Enter] in a grid that is embedded in a CDialog, the dialog exits. What I want is to have the grid handle the [Enter] key. How can I do that?
You should override OnGetDlgCode (add a message map entry for WM_GETDLGCODE) for the CGXGridWnd and return DLGC_WANTALLKEYS.