Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Please help with Menu Capture, thank you.

Please help with Menu Capture, thank you.

Scheduled Pinned Locked Moved C / C++ / MFC
jsonhelptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JavaTony
    wrote on last edited by
    #1

    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. :) :)

    D 1 Reply Last reply
    0
    • J JavaTony

      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. :) :)

      D Offline
      D Offline
      Dever
      wrote on last edited by
      #2

      whose class name should be "MsoCommandBarPopup"

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups