Holy Dense... Codeguru Guru's
-
Hi All, man, you know its Monday...... yes, i will lash myself after this. i can't belive, i've gone brain numb on this. I need to trap wm_quit/wm_close or any systm messages that will cause my app to shutdown, so i can check if my app is ready to shutdown ,and prevent this from happening unless certain conditions are met in my app. i've tried the OnCmdMsg --> if pMsg->message == WM_QUIT etc.... with no success. is this suppose to go in the main app .cpp file or the mainfrm.cpp Thanks in advance lost, stupid and confused Fred
-
Hi All, man, you know its Monday...... yes, i will lash myself after this. i can't belive, i've gone brain numb on this. I need to trap wm_quit/wm_close or any systm messages that will cause my app to shutdown, so i can check if my app is ready to shutdown ,and prevent this from happening unless certain conditions are met in my app. i've tried the OnCmdMsg --> if pMsg->message == WM_QUIT etc.... with no success. is this suppose to go in the main app .cpp file or the mainfrm.cpp Thanks in advance lost, stupid and confused Fred
if you override the OnClose() handler and simply return without executing the default handler if you don't want to close
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away"
sonork: 100.18128 8028finder.com -
Hi All, man, you know its Monday...... yes, i will lash myself after this. i can't belive, i've gone brain numb on this. I need to trap wm_quit/wm_close or any systm messages that will cause my app to shutdown, so i can check if my app is ready to shutdown ,and prevent this from happening unless certain conditions are met in my app. i've tried the OnCmdMsg --> if pMsg->message == WM_QUIT etc.... with no success. is this suppose to go in the main app .cpp file or the mainfrm.cpp Thanks in advance lost, stupid and confused Fred
If you are using the document/view architecture, look up CDocument::SaveModified() in MSDN.
-
Hi All, man, you know its Monday...... yes, i will lash myself after this. i can't belive, i've gone brain numb on this. I need to trap wm_quit/wm_close or any systm messages that will cause my app to shutdown, so i can check if my app is ready to shutdown ,and prevent this from happening unless certain conditions are met in my app. i've tried the OnCmdMsg --> if pMsg->message == WM_QUIT etc.... with no success. is this suppose to go in the main app .cpp file or the mainfrm.cpp Thanks in advance lost, stupid and confused Fred
-
if you override the OnClose() handler and simply return without executing the default handler if you don't want to close
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away"
sonork: 100.18128 8028finder.com -
Hi All, man, you know its Monday...... yes, i will lash myself after this. i can't belive, i've gone brain numb on this. I need to trap wm_quit/wm_close or any systm messages that will cause my app to shutdown, so i can check if my app is ready to shutdown ,and prevent this from happening unless certain conditions are met in my app. i've tried the OnCmdMsg --> if pMsg->message == WM_QUIT etc.... with no success. is this suppose to go in the main app .cpp file or the mainfrm.cpp Thanks in advance lost, stupid and confused Fred
WM_QUIT is not passed to any window proc (MFC or otherwise). When GetMessage() pulls a WM_QUIT out of the queue, it returns 0 to terminate the window's message loop. --Mike-- Just released - RightClick-Encrypt v1.3 - Adds fast & easy file encryption to Explorer My really out-of-date homepage Sonork-100.19012 Acid_Helm