WM_CLOSE

  • Thread starter Thread starter Simon
  • Start date Start date
S

Simon

Hi all.

How can i intercept WM_CLOSE message when it were sent from OS (PPC2003) and
not from my application?

Thanks in advance.

Simon.
 
Simon,

Set some form variable to true if your code closes the form from a menu
option, button click, etc. Then in your closing event handler you can
inspect that variable to see if you caused the closing to happen or not.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top