Jump to content

Recommended Posts

Guest gimli
Posted

My application consists of 2 dialogs: "settings" a "recognition". Most of the time the application stays in the background. When the "settings" is brought to the foreground and action key is pressed, I'd like to bring up the "recognition" dialog. In other cases I need default key processing.

I've tried RegisterHotKey(hDlg, ID_HOME_BUTTON_HOTKEY, MOD_WIN, VK_THOME) and catch WM_HOTKEY message. I get the message, but I can not do default processing!

How can I do something like this?

if (uMsg == WM_HOTKEY && wParam == ID_ACTION_BUTTON_HOTKEY)


{


   if (settingsWndIsUp()) myProcessing();


   else defaultProcessing()


}

I've tried using DefWindowProc(), but it does not help.

Thanks

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.