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. Dialog??

Dialog??

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

    I don't want exit Dialog by click Close button (x) default, help me!!!

    D R 2 Replies Last reply
    0
    • H HoldMe

      I don't want exit Dialog by click Close button (x) default, help me!!!

      D Offline
      D Offline
      Dana Holt
      wrote on last edited by
      #2

      Just handle the WM_CLOSE message but don't call the base class's handler. You could also change the dialog style to not display the close button at all. -- Dana Holt Xenos Software

      1 Reply Last reply
      0
      • H HoldMe

        I don't want exit Dialog by click Close button (x) default, help me!!!

        R Offline
        R Offline
        Ravi Bhavnani
        wrote on last edited by
        #3

        A better way is to handle WM_SYSCOMMAND and to do nothing (i.e. simply return) if the code is SC_CLOSE. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com

        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