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. Quitting an application

Quitting an application

Scheduled Pinned Locked Moved C / C++ / MFC
c++mcpquestion
5 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.
  • G Offline
    G Offline
    Gagnon Claude
    wrote on last edited by
    #1

    Hi, I want to know, in a Doc/View MFC application, where is the place to map a message to quitting an application by the File menu and by the X button at the top right of a window ? Thanks. Claude

    R 1 Reply Last reply
    0
    • G Gagnon Claude

      Hi, I want to know, in a Doc/View MFC application, where is the place to map a message to quitting an application by the File menu and by the X button at the top right of a window ? Thanks. Claude

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      Hi, WM_CLOSE would be posted when the X button is clicked or file->exit is chosen. If you can explain your what you're trying to achieve, someone may suggest a better way out.

      It is a crappy thing, but it's life -^ Carlo Pallini

      C 1 Reply Last reply
      0
      • R Rajesh R Subramanian

        Hi, WM_CLOSE would be posted when the X button is clicked or file->exit is chosen. If you can explain your what you're trying to achieve, someone may suggest a better way out.

        It is a crappy thing, but it's life -^ Carlo Pallini

        C Offline
        C Offline
        chirag_chauhan
        wrote on last edited by
        #3

        You can also use WM_SYSCOMMAND/SC_CLOSE.

        R 1 Reply Last reply
        0
        • C chirag_chauhan

          You can also use WM_SYSCOMMAND/SC_CLOSE.

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          Please reply to the person who asked the query.

          It is a crappy thing, but it's life -^ Carlo Pallini

          C 1 Reply Last reply
          0
          • R Rajesh R Subramanian

            Please reply to the person who asked the query.

            It is a crappy thing, but it's life -^ Carlo Pallini

            C Offline
            C Offline
            chirag_chauhan
            wrote on last edited by
            #5

            K, will take care about it

            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