11-25-2015, 02:40 PM
I wonder whether it is possible to attach a toolbar on a popup menu generated with MenuPopup. If I would use a window visible trigger, how could I find the popup menu's specifications (window name, class).
Toolbar on a popup menu
|
11-25-2015, 02:40 PM
I wonder whether it is possible to attach a toolbar on a popup menu generated with MenuPopup. If I would use a window visible trigger, how could I find the popup menu's specifications (window name, class).
11-25-2015, 03:21 PM
Macro Macro2760
int hh=SetWindowsHookEx(WH_CBT &sub.HookCbtProc 0 GetCurrentThreadId) Toolbar Toolbar on QM popup menu
11-25-2015, 04:25 PM
Many thanks, it is perfect!
11-26-2015, 07:29 AM
Dear Gintaras,
Let me ask one additional relevant question : Is there any way to find the pop-up window's location and dimensions (GetWinXY). I need the in order to position this toolbar accordingly. Many thanks in advance.
11-26-2015, 08:01 AM
wParam is menu window handle.
11-26-2015, 08:18 AM
Thank you. I thought it was so. Therefore I have modified the hook function as it follows :
Macro Macro2760 ;www.quickmacros.com/forum/viewtopic.php?p=30301 Nevertheless, I get 4 zeros. Please, advise.
11-26-2015, 08:47 AM
The window is created with zero size, then resized. Need to call GetWinXY later, eg set timer...
There is another hook API. Macro Macro2761 int hh=SetWinEventHook(EVENT_OBJECT_SHOW EVENT_OBJECT_SHOW 0 &sub.Hook_SetWinEventHook GetCurrentProcessId GetCurrentThreadId WINEVENT_OUTOFCONTEXT)
11-26-2015, 09:04 AM
Thank you so much. I tested it, it works perfectly!
|
« Next Oldest | Next Newest »
|