I've hooked into an external program and am intercepting and processing certain messages. When I detect a WM_WINPOSCHANGED message i want to post a WM_USER message to the bottom of the queue.
i do this using the callback method;
LRESULT CALLBACK AppEventsHook (int nCode, WPARAM wParam, LPARAM lParam)
if(nCode == HC_ACTION)
LPCWPSTRUCT pCwp = (LPCWPSTRUCT) lParam;
and i post the message as so
i have also tried
at the moment all i try and do is catch the WM_USER message (i catch the WM_WINPOSCHANGED just fine) and output to a log file to prove that it is working, however it doesnt seems to be posting the WM_USER message properly.
if(pCwp->wParam == 12345)
msg.Format("DETECTED MY MESSAGE"); CLogFile::logmsg(msg);
can anyone tell me what i'm doing wrong here?