Tray Icon (for CFormView) question
-
Hi, i'm implementing a tray icon for a cformview mfc sdi app. I want to know which message captures when you press close in the app. (the Cross on the top right part of the program. I know that the CDialog has the OnCancel, so it closes when you press esc. But it doen't work with cformview . I tried OnClose, but when i press the X it never goes there. Any ideas? thanks!
-
Hi, i'm implementing a tray icon for a cformview mfc sdi app. I want to know which message captures when you press close in the app. (the Cross on the top right part of the program. I know that the CDialog has the OnCancel, so it closes when you press esc. But it doen't work with cformview . I tried OnClose, but when i press the X it never goes there. Any ideas? thanks!
Why not capture the WM_DESTROY message? That autta work.