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. MDIChild not getting WM_CLOSE

MDIChild not getting WM_CLOSE

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

    I want to give user some messages before closing the MDIchild window. But I am not getting the WM_CLOSE message. I receive WM_DESTROY messsage. How to get the WM_CLOSE message in MDIChild window.

    Regards Anil

    P M 2 Replies Last reply
    0
    • _ _anil_

      I want to give user some messages before closing the MDIchild window. But I am not getting the WM_CLOSE message. I receive WM_DESTROY messsage. How to get the WM_CLOSE message in MDIChild window.

      Regards Anil

      P Offline
      P Offline
      prasad_som
      wrote on last edited by
      #2

      _anil_ wrote:

      How to get the WM_CLOSE message in MDIChild window

      Add handler for it. Are you sure ON_WM_CLOSE() is there in message map ?

      Prasad Notifier using ATL | Operator new[],delete[][^]

      _ 1 Reply Last reply
      0
      • P prasad_som

        _anil_ wrote:

        How to get the WM_CLOSE message in MDIChild window

        Add handler for it. Are you sure ON_WM_CLOSE() is there in message map ?

        Prasad Notifier using ATL | Operator new[],delete[][^]

        _ Offline
        _ Offline
        _anil_
        wrote on last edited by
        #3

        :) :) Yes ofcourse I have added.

        Regards Anil

        P 1 Reply Last reply
        0
        • _ _anil_

          :) :) Yes ofcourse I have added.

          Regards Anil

          P Offline
          P Offline
          prasad_som
          wrote on last edited by
          #4

          Thenm, there should not be any problem.

          Prasad Notifier using ATL | Operator new[],delete[][^]

          1 Reply Last reply
          0
          • _ _anil_

            I want to give user some messages before closing the MDIchild window. But I am not getting the WM_CLOSE message. I receive WM_DESTROY messsage. How to get the WM_CLOSE message in MDIChild window.

            Regards Anil

            M Offline
            M Offline
            Mark Salsbery
            wrote on last edited by
            #5

            How is the window being closed?

            "Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")

            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