- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi buddies, im in the last steps of a large program, this is a combined quickwin and win32 project, now im dealing with the exit in the program. The thing is that i want to ask to the user to save changes before leave the program, when i pick the X in the right upper boundary. I undesrtad that event sends a wm_destroy message, i can pause the program in that message and display a dialog box asking for saving, but next, the program exits, and i dont want to, i yust want to stop exit. I read and note that alsouse a postquit function that sends a wm_quit message,I tried to stop the program in wm_quit message but couldn'tdo it, so i think that when itry to stop via wm_destroy message is too late.Does anybody knows how to stop exit message.
Thanks!!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
(DefWindowProc will call DestroyWindow on WM_CLOSE, which in turn will generate WM_DESTROY, but, as you noted, it's too late then). WM_QUIT comes even later.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page