- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can't get my Window to close when I click the upper right "X" close box. Is there something I need to check in order to make this functional?
Harry Bell
Harry Bell
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Harry, please,
Which type of project? Which compiler? As you posted it, we
could only guess if you're unable to make the X button work in your Win32 application or you can't close browser on a Linux?
(Educated guess) A Win32 application (with standard message loop) should handle WM_DESTROY message in the frame window procedure
like this:
I hope that's the answer,
Regards,
Jugoslav
Which type of project? Which compiler? As you posted it, we
could only guess if you're unable to make the X button work in your Win32 application or you can't close browser on a Linux?
(Educated guess) A Win32 application (with standard message loop) should handle WM_DESTROY message in the frame window procedure
like this:
SELECT CASE(Msg) ... CASE (WM_DESTROY) CALL PostQuitMessage(wParam) ...
I hope that's the answer,
Regards,
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I discovered how to close a window by clicking the the upper right box from a dialog window: One of the control IDs must be "IDCANCEL". If at least one of the controls in the dialog window is named exactly "IDCANCEL" then clicking the upper right box will invoke this control with a cancel signal. Obscure indeed.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page