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 remove the cancel button at the top right of a dialog box.

How to remove the cancel button at the top right of a dialog box.

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
7 Posts 6 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.
  • A Offline
    A Offline
    ashwath2005
    wrote on last edited by
    #1

    hi all , I have a dialog box application.I want to remove the cancel button at the top right of a dialog box.Can anyone pls. tell me how to do it.

    D M M S H 5 Replies Last reply
    0
    • A ashwath2005

      hi all , I have a dialog box application.I want to remove the cancel button at the top right of a dialog box.Can anyone pls. tell me how to do it.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Have you considered removing the WS_SYSMENU style?


      "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

      "Judge not by the eye but by the heart." - Native American Proverb

      1 Reply Last reply
      0
      • A ashwath2005

        hi all , I have a dialog box application.I want to remove the cancel button at the top right of a dialog box.Can anyone pls. tell me how to do it.

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

        do in the resource editor, select your dialog box, once it's openned, select the "Cancel" button and press the delete key on your keyboard.


        Maximilien Lincourt Your Head A Splode - Strong Bad

        D 1 Reply Last reply
        0
        • M Maximilien

          do in the resource editor, select your dialog box, once it's openned, select the "Cancel" button and press the delete key on your keyboard.


          Maximilien Lincourt Your Head A Splode - Strong Bad

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          The "cancel" button he is referring to is the "X" in the top-right corner of the dialog.


          "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

          "Judge not by the eye but by the heart." - Native American Proverb

          1 Reply Last reply
          0
          • A ashwath2005

            hi all , I have a dialog box application.I want to remove the cancel button at the top right of a dialog box.Can anyone pls. tell me how to do it.

            M Offline
            M Offline
            MonjSam
            wrote on last edited by
            #5

            Do the following: Open the dialog box resource from the resource window in the workspace pane. Right click once you are on the dialog box and open properties. On the 'sytles' tab uncheck the system menu. That should do the trick.

            1 Reply Last reply
            0
            • A ashwath2005

              hi all , I have a dialog box application.I want to remove the cancel button at the top right of a dialog box.Can anyone pls. tell me how to do it.

              S Offline
              S Offline
              sheshidar
              wrote on last edited by
              #6

              Hi .. Do u mean the CANCEL button which comes by default when u start a new project? Or some other cancel button, write it in clear cheers.. Do Good, Be Good

              1 Reply Last reply
              0
              • A ashwath2005

                hi all , I have a dialog box application.I want to remove the cancel button at the top right of a dialog box.Can anyone pls. tell me how to do it.

                H Offline
                H Offline
                Hamid Taebi
                wrote on last edited by
                #7

                Modify(WS_SYSMENU,0);

                _**


                **_

                whitesky


                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