in your callback function send message back to your window handle
something like this
- Code: Select all
LRESULT CALLBACK GetMsgProc (int nCode, WPARAM wParam, LPARAM lParam)
{
if (nCode < 0)
{
return CallNextHookEx(hmsgHooks, nCode, wParam, lParam);
}
else
{
SendNotifyMessage(hWndyourhandletoreceivemessagehere, msg->message,msg->wParam,msg->lParam);
}
return CallNextHookEx(hmsgHooks, nCode, wParam, lParam);
}
hope you can understand that, hWndyourhandletoreceivemessagehere is the window handle that you do the subclassing
the hint it's you send back message to your handle





