capturing close button
-
in a dialog box ,there will be minimize,maximize,close buttons at the right-top end of the window. if i click on close button , how to capture it ? thanks in advance, Anandi VC
WM_SYSCOMMAND / OnSysCommand / (eg)SC_CLOSE should do the trick, though I think in CDialog it ends up calling OnCancel, so you have less work to do - please verify for yourself. Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
-
WM_SYSCOMMAND / OnSysCommand / (eg)SC_CLOSE should do the trick, though I think in CDialog it ends up calling OnCancel, so you have less work to do - please verify for yourself. Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
-
in a dialog box ,there will be minimize,maximize,close buttons at the right-top end of the window. if i click on close button , how to capture it ? thanks in advance, Anandi VC
Anandi.VC wrote:
if i click on close button , how to capture it ?
The framework calls
OnSysCommand(0xf060)
,OnClose()
, andOnCancel()
, in that order."Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Anandi.VC wrote:
if i click on close button , how to capture it ?
The framework calls
OnSysCommand(0xf060)
,OnClose()
, andOnCancel()
, in that order."Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Anandi.VC wrote:
if i click on close button , how to capture it ?
The framework calls
OnSysCommand(0xf060)
,OnClose()
, andOnCancel()
, in that order."Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne