WM_VSCROLL not working after starting a hook
Hi all,
I've got a very strange problem :-)
I wrote the following message hook in VC++:
...
g_hHookCallWndProc = SetWindowsHookEx(WH_CALLWNDPROC, MyCallWndProcHook,
hInst, 0);
...
LRESULT CALLBACK MyCallWndProcHook(int code, WPARAM wParam, LPARAM lParam)
{
return ::CallNextHookEx(g_hHookCallWndProc, code, wParam, lParam);
Quote:
}
After calling this hook I cannot send any "SendMessage ctl.hWnd, WM_HSCROLL,
SB_LINELEFT, 0" to a control via VB.
Although "SendMessage ctl.hWnd, WM_VSCROLL, SB_LINEDOWN, 0" works fine via
VB.
The same strange effect is appearing after starting Microsoft Spy++ instead
of the hook.
Another strange thing is, that I cannot send a WM_HSCROLL message to a text
box in VB although I can send an WM_VSCROLL message.
With VC++ I can send this event. What's going wrong?
Any ideas? Is this a bug?
Thanks from Germany,
Andreas