Re: [GD-Windows] Dialog doesn't move
Brought to you by:
vexxed72
From: brian s. <bri...@gm...> - 2006-04-29 07:50:36
|
On 29 Apr 2006, at 07:04, Martin Slater wrote: >> Now, there is a little bit more to the story. I'm calling >> IsDialogEvent from inside a GetMessage WindowsHook, and if it >> (IsDialogEvent) returns true, I change the message to WM_NULL/0/0. >> The reason is that I'm actually hosted as a DLL inside another >> application. I've already recovered my HMODULE, the HMODULE of the >> host, and the HWND of the main window, so that's all good. I also >> know the thread is the same, because I only hook GetCurrentThreadId >> () in the SetWindowsHookEx() call. > > If your in a window hook don't you want to let the original window > handler get a look in with something like > > return CallWindowProc(m_oldWindowProc, hwnd, message, > wParam, lParam); > > not sure if this applies to your situation or not but may help;) > You're thinking of what one does when subclassing windows - hook procedures are another beast entirely. Jon needs to call CallNextHookEx but if he doesn't the only thing that will break will be other hooks. Only thing that springs to my mind for Jon's problem is that a GetMessage hook doesn't catch all the messages sent to an app. Anything sent via PostMessage goes into the message queue, but anything sent via SendMessage goes straight to the WndProc. I have no idea if this is related to the problem, but it *is* a difference between a quote-unquote "standard" app and what Jon is trying to do. --brian ____________________________________________________ brian sharon | bri...@gm... | http://projecthellion.co.uk |