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. Removing Min/Max buttons from an application

Removing Min/Max buttons from an application

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

    Is it possible to remove the minimize/maximize/close buttons from a non-dialog application. I'm working on an application where we don't want them displayed. I believe you can disable their functionality by removing their corresponding menu commands, but that still leaves the buttons visible.

    O 1 Reply Last reply
    0
    • R rentzk

      Is it possible to remove the minimize/maximize/close buttons from a non-dialog application. I'm working on an application where we don't want them displayed. I believe you can disable their functionality by removing their corresponding menu commands, but that still leaves the buttons visible.

      O Offline
      O Offline
      Owner drawn
      wrote on last edited by
      #2

      rentzk wrote:

      Is it possible to remove the minimize/maximize/close

      Remove WM_SYSMENU style from the concerned window's style.

      Jesus Lives Forever - Amen:rose:

      --Owner drawn:rose: --An eye for an eye makes the whole world blind. --If you find my post helpful then do rate it. --Jesus is Lord:rose:

      R 1 Reply Last reply
      0
      • O Owner drawn

        rentzk wrote:

        Is it possible to remove the minimize/maximize/close

        Remove WM_SYSMENU style from the concerned window's style.

        Jesus Lives Forever - Amen:rose:

        --Owner drawn:rose: --An eye for an eye makes the whole world blind. --If you find my post helpful then do rate it. --Jesus is Lord:rose:

        R Offline
        R Offline
        rentzk
        wrote on last edited by
        #3

        Owner drawn wrote:

        rentzk wrote: Is it possible to remove the minimize/maximize/close Remove WM_SYSMENU style from the concerned window's style.

        Any sugestions about how to do this to the main window? I've done this before with dialogs in an application, but this is the first time I've ever attempted doing it for the entire program.

        O 1 Reply Last reply
        0
        • R rentzk

          Owner drawn wrote:

          rentzk wrote: Is it possible to remove the minimize/maximize/close Remove WM_SYSMENU style from the concerned window's style.

          Any sugestions about how to do this to the main window? I've done this before with dialogs in an application, but this is the first time I've ever attempted doing it for the entire program.

          O Offline
          O Offline
          Owner drawn
          wrote on last edited by
          #4

          In PreCreateWindow(...)

          Jesus Lives Forever - Amen:rose:

          --Owner drawn:rose: --An eye for an eye makes the whole world blind. --If you find my post helpful then do rate it. --Jesus is Lord:rose:

          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