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. System menu disabling

System menu disabling

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 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.
  • M Offline
    M Offline
    mnupadhya
    wrote on last edited by
    #1

    Hi, I am developing a SDI app. I have disabled the System menu (Windows menu) and I display my own popup menu when the user clicks on the Icon on the title bar. But when the App is minimizid, when the user clicks on the App in the taskbar, my custom menu doesn't show up. Is there any way of popping up my own menu when the user clicks on the minimized app? Thanks in advance, Narahari Upadhya

    J 1 Reply Last reply
    0
    • M mnupadhya

      Hi, I am developing a SDI app. I have disabled the System menu (Windows menu) and I display my own popup menu when the user clicks on the Icon on the title bar. But when the App is minimizid, when the user clicks on the App in the taskbar, my custom menu doesn't show up. Is there any way of popping up my own menu when the user clicks on the minimized app? Thanks in advance, Narahari Upadhya

      J Offline
      J Offline
      Jason Teagle
      wrote on last edited by
      #2

      How are you getting your menu to pop up? It sounds as if you're using WM_NCLBUTTONxxx, and I guess when it's in the task bar you don't get this kind of message - am I close? If this is correct, consider using GetSystemMenu(FALSE) and *modifying* that menu to be what you want. I would suggest that it's 'controversial' to meddle with the standard user interface if you can find other ways to achieve your goal. It may be a simple case of disabling all standard items and adding your items to the end...

      M 1 Reply Last reply
      0
      • J Jason Teagle

        How are you getting your menu to pop up? It sounds as if you're using WM_NCLBUTTONxxx, and I guess when it's in the task bar you don't get this kind of message - am I close? If this is correct, consider using GetSystemMenu(FALSE) and *modifying* that menu to be what you want. I would suggest that it's 'controversial' to meddle with the standard user interface if you can find other ways to achieve your goal. It may be a simple case of disabling all standard items and adding your items to the end...

        M Offline
        M Offline
        mnupadhya
        wrote on last edited by
        #3

        Thats right. I am handling WM_NCLBUTTONXXX to popup my menu. The reason I don't want to use system menu at all is that I want to remove the default close, minimize and maximize buttons and add my own custom buttons there and hence I have to remove the system menu and show my own menu rather than modifying the system menu.

        M 1 Reply Last reply
        0
        • M mnupadhya

          Thats right. I am handling WM_NCLBUTTONXXX to popup my menu. The reason I don't want to use system menu at all is that I want to remove the default close, minimize and maximize buttons and add my own custom buttons there and hence I have to remove the system menu and show my own menu rather than modifying the system menu.

          M Offline
          M Offline
          mnupadhya
          wrote on last edited by
          #4

          I tried manipulating the system menu to add my own menu items.. it works perfectly fine except that eventhough I have Removed the system minimize, maximize and close buttons and drawing my own buttons on top of them, Whenever I click on the title bar, the system close box appears everytime. I heard its a XP related issue. Is there any way of getting rid of the close button? Thanks, Narahari Upadhya

          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