Article ID: 166251
Article Last Modified on 7/11/2005
UINT APIENTRY HookProcOldStyle(HWND hDlg,
UINT uMsgId,
WPARAM wParam,
LPARAM lParam)
{
switch (uMsgId){
// WPARAM of this message contains the handle of the control
// to receive focus.
case WM_INITDIALOG:
SetFocus((HWND)wParam);
return 1;
...
default:
return 0;
}
}
Keywords: kbhook kbprb KB166251