Thread: Message sent when you click on 'X'

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

    Message sent when you click on 'X'

    Hi,
    I was wondering if anyone knew what message is sent to the windows when you click on the X button to close a window. Thanks
    Amish

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    I believe its WM_CLOSE

  3. #3
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    that is correct sir! and if you want to close the window as a result, you DestroyWindow() it which will in turn give you a WM_DESTROY! Woohoo!!!! Wheeee! Yip-yip-yippee!!!
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help on understanding the warning message
    By ssharish2005 in forum C Programming
    Replies: 3
    Last Post: 05-24-2007, 02:03 AM
  2. input/output
    By dogbert234 in forum Windows Programming
    Replies: 11
    Last Post: 01-26-2005, 06:57 AM
  3. DDX/DDV and Message Maps
    By axr0284 in forum Windows Programming
    Replies: 2
    Last Post: 01-07-2005, 08:55 AM
  4. Windows message loop variations
    By Leeman_s in forum Windows Programming
    Replies: 1
    Last Post: 01-10-2003, 09:01 PM
  5. Sending CChildView a Message :: MFC
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 04-06-2002, 03:00 PM