Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Toolbar on a popup menu
#6
Thank you. I thought it was so. Therefore I have modified the hook function as it follows :

Macro Macro2760
Code:
Copy      Help
;www.quickmacros.com/forum/viewtopic.php?p=30301

int hh=SetWindowsHookEx(WH_CBT &sub.HookCbtProc 0 GetCurrentThreadId)

int r=ShowMenu("one[]two[]three")

UnhookWindowsHookEx hh


#sub HookCbtProc
function# code wParam lParam
if code=HCBT_CREATEWND and GetClassLong(wParam GCW_ATOM)=32768

,int x y cx cy
,GetWinXY wParam x y cx cy
,out F"{x} {y} {cx} {cy}"
,
,
,mac "Toolbar on QM popup menu"

ret CallNextHookEx(0 code wParam +lParam)

Nevertheless, I get 4 zeros.

Please, advise.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)