Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Processing messages from WindowProc
#1
I'd like to be able to process messages from WindowProc function http://msdn.microsoft.com/en-us/library/...85%29.aspx, so I tried to piece together a function based on the AltMouseTriggers sample (which uses LowLevelMouseProc function). But it doesn't work. Any suggestions?

Function WinProcMessages
Code:
Copy      Help
function [nCode] [wParam] [CWPSTRUCT*m]

if(getopt(nargs)=0)
    int+ g_whook=SetWindowsHookEx(WH_CALLWNDPROC &WinProcMessages _hinst GetCurrentThreadId)
    opt waitmsg 1
    wait -1 -V g_whook
    ret

sel m.message
    case WM_LBUTTONDBLCLK
    out "double"

    case WM_MOVE
    out "move"
    
    case WM_SIZE
    out "size"

ret CallNextHookEx(g_whook nCode wParam m)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)