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. Disabling CROSS button on dialog

Disabling CROSS button on dialog

Scheduled Pinned Locked Moved C / C++ / MFC
4 Posts 3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    HI all.. i want to know of any function to disable/remove the close Button on a dialog(CROSS button on top right corner). It can be done by setting the property of the dialog but that is not what i want. Thanks

    S 1 Reply Last reply
    0
    • L Lost User

      HI all.. i want to know of any function to disable/remove the close Button on a dialog(CROSS button on top right corner). It can be done by setting the property of the dialog but that is not what i want. Thanks

      S Offline
      S Offline
      Stlan
      wrote on last edited by
      #2

      Try this: GetSystemMenu(FALSE)->EnableMenuItem(SC_CLOSE, FALSE);

      T 1 Reply Last reply
      0
      • S Stlan

        Try this: GetSystemMenu(FALSE)->EnableMenuItem(SC_CLOSE, FALSE);

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        Stlan wrote: Try this: GetSystemMenu(FALSE)->EnableMenuItem(SC_CLOSE, FALSE); HI Stlan, Hows life going :)long time no see, no mail

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta VC Forum Q&A :- I/ IV

        S 1 Reply Last reply
        0
        • T ThatsAlok

          Stlan wrote: Try this: GetSystemMenu(FALSE)->EnableMenuItem(SC_CLOSE, FALSE); HI Stlan, Hows life going :)long time no see, no mail

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta VC Forum Q&A :- I/ IV

          S Offline
          S Offline
          Stlan
          wrote on last edited by
          #4

          Fine, Thanks! I had not too much time to wander on CP in the last days! (heavy work load this last days X| ) The week-end was fine however. And you ? How is your new job ? Are your new colleagues nice ? By the way, I see at the TV there is a lot of troubles in India because of floods due the rain season. I hope everything is OK for you and your family.

          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