Click here to Skip to main content
15,907,396 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to Change CPropertyPage's Title Pin
zt978818-May-06 19:12
zt978818-May-06 19:12 
AnswerRe: How to Change CPropertyPage's Title Pin
_anil_18-May-06 20:55
_anil_18-May-06 20:55 
GeneralRe: How to Change CPropertyPage's Title Pin
zt978818-May-06 21:11
zt978818-May-06 21:11 
GeneralRe: How to Change CPropertyPage's Title Pin
_anil_18-May-06 21:36
_anil_18-May-06 21:36 
GeneralRe: How to Change CPropertyPage's Title Pin
zt978818-May-06 22:20
zt978818-May-06 22:20 
AnswerRe: How to Change CPropertyPage's Title Pin
Peter Weyzen18-May-06 21:09
Peter Weyzen18-May-06 21:09 
GeneralRe: How to Change CPropertyPage's Title Pin
zt978818-May-06 21:23
zt978818-May-06 21:23 
QuestionHow to ask Save When exit the app Pin
huutribk200118-May-06 19:05
huutribk200118-May-06 19:05 
Hi, 
I need ask the user save what the changes on my app when user exit thep app

I used at bellow but It is not work correctly

bool CTestDLLDlg::CleanUp() 
{
	int iMes=-1;
	if(bHasMouseAdjusted){

		iMes = ::MessageBox(this->m_hWnd,"Don you want to save the changes to Sence Configuration?","Pixelware TV Life",3);
	}

	if(iMes==2){
		return false;
        }
        if(iMes==6){
           //Save what the changes here
        }
    return true;
}

void CTestDLLDlg::OnDestroy() 
{
	// TODO: Add your message handler code here
	if(CleanUp())
	{
		CDialog::OnDestroy();
	}
	
}

void CTestDLLDlg::OnFileExit() 
{
	// TODO: Add your command handler code here
	if(CleanUp())
	{
		PostQuitMessage (1);	
	}
}

This close the app first after show the message box and with OnFileExit this cause system error.
Please help me with this.

Thank in advance!


Tri
AnswerRe: How to ask Save When exit the app Pin
Ganesh_T18-May-06 19:43
Ganesh_T18-May-06 19:43 
AnswerRe: How to ask Save When exit the app Pin
ThatsAlok18-May-06 19:50
ThatsAlok18-May-06 19:50 
GeneralRe: How to ask Save When exit the app Pin
huutribk200118-May-06 21:59
huutribk200118-May-06 21:59 
QuestionReceive the arguments at the application starts running Pin
zahid_ash18-May-06 18:31
zahid_ash18-May-06 18:31 
AnswerRe: Receive the arguments at the application starts running Pin
Stephen Hewitt18-May-06 18:39
Stephen Hewitt18-May-06 18:39 
GeneralRe: Receive the arguments at the application starts running Pin
led mike18-May-06 18:41
led mike18-May-06 18:41 
GeneralRe: Receive the arguments at the application starts running Pin
zahid_ash18-May-06 18:57
zahid_ash18-May-06 18:57 
GeneralRe: Receive the arguments at the application starts running Pin
Stephen Hewitt18-May-06 19:02
Stephen Hewitt18-May-06 19:02 
GeneralRe: Receive the arguments at the application starts running Pin
zahid_ash18-May-06 19:12
zahid_ash18-May-06 19:12 
GeneralRe: Receive the arguments at the application starts running Pin
Stephen Hewitt18-May-06 19:14
Stephen Hewitt18-May-06 19:14 
GeneralRe: Receive the arguments at the application starts running Pin
zahid_ash18-May-06 19:01
zahid_ash18-May-06 19:01 
AnswerRe: Receive the arguments at the application starts running Pin
led mike18-May-06 18:40
led mike18-May-06 18:40 
AnswerRe: Receive the arguments at the application starts running Pin
ThatsAlok18-May-06 19:49
ThatsAlok18-May-06 19:49 
QuestionUsing Serpent Encryption Pin
Bob X18-May-06 17:33
Bob X18-May-06 17:33 
AnswerRe: Using Serpent Encryption Pin
Stephen Hewitt18-May-06 17:36
Stephen Hewitt18-May-06 17:36 
GeneralRe: Using Serpent Encryption Pin
Bob X18-May-06 17:51
Bob X18-May-06 17:51 
Questionshow HScrollBar Pin
chybin18-May-06 17:12
chybin18-May-06 17:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.