Click here to Skip to main content
15,917,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalpopupmenu language Pin
coolice200210-Mar-05 9:05
coolice200210-Mar-05 9:05 
GeneralRe: popupmenu language Pin
Mircea Puiu11-Mar-05 4:44
Mircea Puiu11-Mar-05 4:44 
GeneralUse of Registry WriteProfileString Pin
jerry1211a10-Mar-05 8:37
jerry1211a10-Mar-05 8:37 
GeneralRe: Use of Registry WriteProfileString Pin
Chris Meech10-Mar-05 9:05
Chris Meech10-Mar-05 9:05 
GeneralRe: Use of Registry WriteProfileString Pin
David Crow10-Mar-05 10:00
David Crow10-Mar-05 10:00 
GeneralMFC Open Dialog Pin
Anonymous10-Mar-05 8:00
Anonymous10-Mar-05 8:00 
GeneralRe: MFC Open Dialog Pin
Steen Krogsgaard 210-Mar-05 8:08
Steen Krogsgaard 210-Mar-05 8:08 
GeneralI'm puzzled Pin
g3e10-Mar-05 7:57
g3e10-Mar-05 7:57 
I've implemented a wizard using the CPropertySheet and CPropertyPage classes.
When i'm in a particular page of the wizard, when i click the "Cancel" button or press ESC or close the page by clicking on the "X" in the right top corner, the CANCEL message gets fired and control comes to the OnCancel command handler. At this point the PSN_WIZFINISH notification is not sent.

void CMyPropertyPage::OnCancel()
{
ASSERT(m_pSheet != NULL);
m_pSheet->EndDialog(IDCANCEL);
}

Now I have a scenario where i have to forcefully close the wizard by sending
SendMessage(WM_COMMAND,IDCANCEL);
Now after the CANCEL message being sent, the PSN_WIZFINISH notification is also sent . Confused | :confused:

In my class, i've overridden the OnWizardFinish to do some functionality.. So when i do a "SendMessage" i dont want the PSN_WIZFINISH to be sent ..

why does it work this way and how do i avoid it ?
GeneralRe: I'm puzzled Pin
PJ Arends11-Mar-05 15:36
professionalPJ Arends11-Mar-05 15:36 
Questionhow to find workgroup Pin
javad_200510-Mar-05 7:25
javad_200510-Mar-05 7:25 
AnswerRe: how to find workgroup Pin
Branislav10-Mar-05 19:59
Branislav10-Mar-05 19:59 
GeneralAVI Player codec questions Pin
Member 176862410-Mar-05 7:07
Member 176862410-Mar-05 7:07 
GeneralCListCtrl highlight row Pin
DanYELL10-Mar-05 7:06
DanYELL10-Mar-05 7:06 
GeneralI got it! Pin
DanYELL10-Mar-05 7:20
DanYELL10-Mar-05 7:20 
GeneralATL Server and Access Denied Pin
Federico Milano10-Mar-05 6:59
Federico Milano10-Mar-05 6:59 
GeneralShellExecute/CreateProcess problem Pin
YaronNir10-Mar-05 6:38
YaronNir10-Mar-05 6:38 
GeneralRe: ShellExecute/CreateProcess problem Pin
David Crow10-Mar-05 10:06
David Crow10-Mar-05 10:06 
GeneralRe: ShellExecute/CreateProcess problem Pin
Yaronn11-Mar-05 11:43
Yaronn11-Mar-05 11:43 
GeneralRe: ShellExecute/CreateProcess problem Pin
TheGreatAndPowerfulOz10-Mar-05 10:13
TheGreatAndPowerfulOz10-Mar-05 10:13 
GeneralRe: ShellExecute/CreateProcess problem Pin
Yaronn11-Mar-05 11:45
Yaronn11-Mar-05 11:45 
GeneralRe: ShellExecute/CreateProcess problem Pin
Michael Dunn10-Mar-05 11:55
sitebuilderMichael Dunn10-Mar-05 11:55 
GeneralRe: ShellExecute/CreateProcess problem Pin
YaronNir11-Mar-05 11:48
YaronNir11-Mar-05 11:48 
GeneralRe: ShellExecute/CreateProcess problem Pin
David Crow13-Mar-05 15:45
David Crow13-Mar-05 15:45 
GeneralOpenFileDialog....MFC Pin
C++NewBe10-Mar-05 6:08
C++NewBe10-Mar-05 6:08 
GeneralRe: OpenFileDialog....MFC Pin
bcemick10-Mar-05 6:21
bcemick10-Mar-05 6:21 

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.