I need to disable ESC key in ATL COM CAxDialogImpl...
-
I have an ATL COM DLL for a project I'm working on. It has a progress bar so some of our other COM objects can load and use it for showing progress... At any rate, the Dialog is based on CAxDialogImpl. This dialog HAS a Cancel button so I don't want to override OnCancel. I tried overriding WM_KEYDOWN which works fine for any OTHER key pressed but for some reason doesn't capture the Escape key. Anyone have any other ideas? Please help. Matt Philmon
-
I have an ATL COM DLL for a project I'm working on. It has a progress bar so some of our other COM objects can load and use it for showing progress... At any rate, the Dialog is based on CAxDialogImpl. This dialog HAS a Cancel button so I don't want to override OnCancel. I tried overriding WM_KEYDOWN which works fine for any OTHER key pressed but for some reason doesn't capture the Escape key. Anyone have any other ideas? Please help. Matt Philmon
GetAsynchKeyState(VK_ESKAPE); (in your OnCancel(...) to check the state)
-
GetAsynchKeyState(VK_ESKAPE); (in your OnCancel(...) to check the state)
THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU! Matt Philmon:)