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. How to popup the application-menu ?

How to popup the application-menu ?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialwpfquestion
1 Posts 1 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.
  • O Offline
    O Offline
    ohadp
    wrote on last edited by
    #1

    I have a window with no non-client-area and some overriden parameters. i need to popup the application menu when my simulation caption is clicked... this does nothing: SendMessage(WM_SYSCOMMAND, SC_MOUSEMENU+HTSYSMENU, MAKELPARAM(m_clientMenuPos.x, m_clientMenuPos.y)); The only way I can pop it up at the moment is : CMenu* sysMenu = GetSystemMenu(false); int cmd = sysMenu->TrackPopupMenuEx(TPM_RETURNCMD, m_clientMenuPos.x, m_clientMenuPos.y, this, 0); if (cmd) SendMessage(WM_SYSCOMMAND, cmd); but this doesn't always bring the most updated menu. Also, my application-menu contains only 'Move' and 'Close', what window-styles or overriden return-values do I need to have in-order to get all the other options ? (Maximize, minimize, restore, etc) [my window has WM_MAXIMIZEBOX for example).

    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