• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 166
  • Last Modified:

What message is generated?

When you click the button which is in the rightmost of caption bar
(there are minimaze button, maximize button, and this button-the shape of 'x'),
what message is generated and what handler is called?
Thank you in advance.
  • 2
1 Solution
Answer coming....
The message that is generated is WM_CLOSE.  It is usually intercepted to prevent the program from closing when that button is pressed (although I suppose you could do something else with it).

What compiler are you using?  I might be able to help you better if I knew.

Also, if you have any further questions, please feel free to ask them.  Thanks!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now