Click here to Skip to main content
15,891,951 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPropertyPage - OnQueryCancel Pin
JBAK_CP15-Jun-09 7:06
JBAK_CP15-Jun-09 7:06 
I am trying to handle the 'Cancel' button in my property pages (wizard) and I've implemented the 'OnQueryCancel' function to catch the cancel message successfully, but unfortunately it seems that the 'OnQueryCancel' function is being called twice if the user clicked the cancel button. Any ideas on how I could address this issue? Thanks!

virtual BOOL OnQueryCancel();


BOOL CWiz_Page1::OnQueryCancel()
{	
	int ret;
	ret = MessageBox("Are you sure?", NULL, MB_YESNO);
	
	if(ret == IDYES)
		return true;
	else
		return false;
}

AnswerRe: PropertyPage - OnQueryCancel Pin
David Crow15-Jun-09 7:54
David Crow15-Jun-09 7:54 
QuestionCreateImageEx problem with CListCtrl drag and drop Pin
bhanu_850915-Jun-09 5:39
bhanu_850915-Jun-09 5:39 
AnswerRe: CreateImageEx problem with CListCtrl drag and drop Pin
bhanu_850915-Jun-09 23:39
bhanu_850915-Jun-09 23:39 
QuestionCalling the functions from different class Pin
aravind.sn15-Jun-09 2:55
aravind.sn15-Jun-09 2:55 
AnswerRe: Calling the functions from different class Pin
_AnsHUMAN_ 15-Jun-09 3:08
_AnsHUMAN_ 15-Jun-09 3:08 
GeneralRe: Calling the functions from different class Pin
aravind.sn15-Jun-09 3:30
aravind.sn15-Jun-09 3:30 
QuestionSetattribute in MSXML Pin
siva45515-Jun-09 2:35
siva45515-Jun-09 2:35 
AnswerRe: Setattribute in MSXML Pin
Stuart Dootson15-Jun-09 3:47
professionalStuart Dootson15-Jun-09 3:47 
GeneralRe: Setattribute in MSXML Pin
siva45515-Jun-09 6:32
siva45515-Jun-09 6:32 
GeneralRe: Setattribute in MSXML Pin
Cedric Moonen15-Jun-09 7:50
Cedric Moonen15-Jun-09 7:50 
GeneralRe: Setattribute in MSXML Pin
Stuart Dootson15-Jun-09 8:13
professionalStuart Dootson15-Jun-09 8:13 
GeneralRe: Setattribute in MSXML Pin
siva45515-Jun-09 18:23
siva45515-Jun-09 18:23 
GeneralRe: Setattribute in MSXML Pin
Stuart Dootson15-Jun-09 21:08
professionalStuart Dootson15-Jun-09 21:08 
QuestionHow Can I get GPS with a Location Platform-compatible driver for Windows 7 Pin
tgm.arjun0915-Jun-09 1:41
tgm.arjun0915-Jun-09 1:41 
QuestionHow to convert string into LPCWSTR Pin
krish_kumar15-Jun-09 0:06
krish_kumar15-Jun-09 0:06 
AnswerRe: How to convert string into LPCWSTR Pin
Cedric Moonen15-Jun-09 0:17
Cedric Moonen15-Jun-09 0:17 
Question[Message Deleted] Pin
krish_kumar15-Jun-09 0:05
krish_kumar15-Jun-09 0:05 
AnswerRe: How to convert string into LPCWSTR Pin
Stuart Dootson15-Jun-09 0:08
professionalStuart Dootson15-Jun-09 0:08 
QuestionCString Pin
Benjamin Bruno14-Jun-09 23:50
Benjamin Bruno14-Jun-09 23:50 
AnswerRe: CString Pin
Stuart Dootson15-Jun-09 0:00
professionalStuart Dootson15-Jun-09 0:00 
QuestionHow to add an Active X Control to a project in Visual Studio 2005/2008? Pin
kapardhi14-Jun-09 23:28
kapardhi14-Jun-09 23:28 
AnswerRe: How to add an Active X Control to a project in Visual Studio 2005/2008? Pin
Stuart Dootson15-Jun-09 0:06
professionalStuart Dootson15-Jun-09 0:06 
GeneralRe: How to add an Active X Control to a project in Visual Studio 2005/2008? Pin
kapardhi15-Jun-09 19:59
kapardhi15-Jun-09 19:59 
QuestionHelp me fpr Pocket PC? Pin
Le@rner14-Jun-09 23:15
Le@rner14-Jun-09 23:15 

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.