03-13-2009, 03:30 AM
Yes, some of the messages are processed but not the mouse messages for some reason.
Function WinProcMessages
I'd like to get the WM_NCHITTEST messages for any active window. The code below seems to work better for this purpose, but is there a more efficient way?
Function WinProcMessages
function [nCode] [wParam] [CWPSTRUCT*m]
if(getopt(nargs)=0)
,int+ g_whook=SetWindowsHookEx(WH_CALLWNDPROC &WinProcMessages 0 GetCurrentThreadId)
,mes 1
,if(!ShowDialog("diggy" 0)) ret
,ret
sel m.message
,case WM_NCLBUTTONDOWN
,out "WM_NCLBUTTONDOWN"
,case WM_LBUTTONDOWN
,out "WM_LBUTTONDOWN"
,case WM_NCHITTEST
,out "WM_NCHITTEST"
,if(m.lParam=HTBOTTOM)
,,out "HTBOTTOM"
,if(m.lParam=HTZOOM)
,,out "HTZOOM"
ret CallNextHookEx(g_whook nCode wParam m)I'd like to get the WM_NCHITTEST messages for any active window. The code below seems to work better for this purpose, but is there a more efficient way?
