USing OnClose

This is a discussion on USing OnClose within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I have an MDI application with 1 child window. I added ON_WM_CLOSE to the message map of the CChildFrm ...

  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    205

    USing OnClose

    Hi,
    I have an MDI application with 1 child window. I added ON_WM_CLOSE to the message map of the CChildFrm class and also have an OnClose() function but the function never gets called when I press on the 'X' button. Anybody have an idea why. Thanks
    Amish

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Add message handler for WM_CLOSE.

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why doesn't this example work for me?
    By xixpsychoxix in forum C++ Programming
    Replies: 4
    Last Post: 03-24-2009, 08:25 PM
  2. why my programs end during onClose event?
    By beon in forum Windows Programming
    Replies: 2
    Last Post: 12-14-2007, 05:28 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21