To extract information from the return value of CHotKeyCtrl.GetHotKey() use HIWORD and LOWORD macros. wVirtualKeyCode=LOWORD(GetHotKey()); wModifiers=HIWORD(GetHotKey()); To create WPARAM use MAKEWPARAM macro: MAKEWPARAM(wVirtualKeyCode,wModifiers) To compare DWORD to WPARAM use: if(wParam==(WPARAM)dwValue) Regards, Andrzej Markowski
My Latest ArticlesCCustomBitmapButton: An owner-draw button and a frame for the caption bar, in one class. CCustomTabCtrl: A clone of the Excel tab sheet control.