Please help with Menu Capture, thank you.
-
Hi there, I am able to capture pop-up menu using this code. HWND hPopupMenu = FindWindow("#32768",NULL); if (hPopupMenu && IsWindowVisible(hPopupMenu)) GetWindowRect(hPopupMenu, &rcMenu); This doesn't work for Microsoft Office Products and Windows Explore 'cause their menus are not standard menu. For instance, Microsoft Word. I am trying this. I used Spy++ to find out the class name and window caption for the menu bar. I tried FindWindow("MsoCommandBar", "Menu Bar") on Microsoft Word. It doesn't work at all. Could someone give me some pointers how to capture pop-up windows from Microsoft Office Products and Windows Explorer. Thank you very much. Will EnumChildWindows or EnumThreadWindows API functions help for this case? If so, could you gimme some tips. Thank you again. :) :)
-
Hi there, I am able to capture pop-up menu using this code. HWND hPopupMenu = FindWindow("#32768",NULL); if (hPopupMenu && IsWindowVisible(hPopupMenu)) GetWindowRect(hPopupMenu, &rcMenu); This doesn't work for Microsoft Office Products and Windows Explore 'cause their menus are not standard menu. For instance, Microsoft Word. I am trying this. I used Spy++ to find out the class name and window caption for the menu bar. I tried FindWindow("MsoCommandBar", "Menu Bar") on Microsoft Word. It doesn't work at all. Could someone give me some pointers how to capture pop-up windows from Microsoft Office Products and Windows Explorer. Thank you very much. Will EnumChildWindows or EnumThreadWindows API functions help for this case? If so, could you gimme some tips. Thank you again. :) :)