Thread: USing OnClose

  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, 06:28 AM