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.
 
Back
Top