Click here to Skip to main content
15,903,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: can VC++ create a MAC version Pin
Maximilien9-Mar-05 8:39
Maximilien9-Mar-05 8:39 
AnswerRe: can VC++ create a MAC version Pin
Ravi Bhavnani9-Mar-05 12:14
professionalRavi Bhavnani9-Mar-05 12:14 
AnswerRe: can VC++ create a MAC version Pin
Steen Krogsgaard9-Mar-05 22:09
Steen Krogsgaard9-Mar-05 22:09 
GeneralRe: can VC++ create a MAC version Pin
Anonymous10-Mar-05 5:52
Anonymous10-Mar-05 5:52 
GeneralProblem reading 0x08 from file. Pin
eddo019-Mar-05 6:31
eddo019-Mar-05 6:31 
GeneralRe: Problem reading 0x08 from file. Pin
karle9-Mar-05 8:42
karle9-Mar-05 8:42 
GeneralRe: Problem reading 0x08 from file. Pin
David Crow9-Mar-05 10:15
David Crow9-Mar-05 10:15 
GeneralProblem in Wizard - OnCancel / OnWizardFinish Pin
g3e9-Mar-05 4:57
g3e9-Mar-05 4: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 ?

Thanx for ur help.
GeneralCall a Managed DLL from Unmanaged MFC Class Pin
morefalt9-Mar-05 4:42
morefalt9-Mar-05 4:42 
GeneralShort-circuit evaluation questions. Pin
rbid9-Mar-05 3:58
rbid9-Mar-05 3:58 
GeneralRe: Short-circuit evaluation questions. Pin
Blake Miller9-Mar-05 4:36
Blake Miller9-Mar-05 4:36 
GeneralRe: Short-circuit evaluation questions. Pin
Ryan Binns9-Mar-05 17:35
Ryan Binns9-Mar-05 17:35 
GeneralRe: Short-circuit evaluation questions. Pin
Steen Krogsgaard10-Mar-05 2:28
Steen Krogsgaard10-Mar-05 2:28 
GeneralRetreiving SafeArray Values from IDispatch Pin
Member 17837689-Mar-05 3:27
Member 17837689-Mar-05 3:27 
GeneralCapturing screenshots of fullscreen dos applications. Pin
Renny[RuS]9-Mar-05 2:50
Renny[RuS]9-Mar-05 2:50 
GeneralRe: Capturing screenshots of fullscreen dos applications. Pin
David Crow9-Mar-05 3:02
David Crow9-Mar-05 3:02 
GeneralRe: Capturing screenshots of fullscreen dos applications. Pin
Renny[RuS]9-Mar-05 9:34
Renny[RuS]9-Mar-05 9:34 
GeneralMixed Language Programming(c++ & fortran) Pin
lavate malllik9-Mar-05 1:25
lavate malllik9-Mar-05 1:25 
GeneralRe: Mixed Language Programming(c++ & fortran) Pin
Cedric Moonen9-Mar-05 2:16
Cedric Moonen9-Mar-05 2:16 
GeneralRe: Mixed Language Programming(c++ & fortran) Pin
lavate malllik9-Mar-05 16:59
lavate malllik9-Mar-05 16:59 
GeneralDispatch Issue Pin
Lord Phoenix9-Mar-05 1:19
Lord Phoenix9-Mar-05 1:19 
GeneralMDI application with a Tree View Pin
rgchezhian9-Mar-05 1:01
rgchezhian9-Mar-05 1:01 
GeneralToolTips Display Pin
nripun9-Mar-05 0:44
nripun9-Mar-05 0:44 
GeneralRe: ToolTips Display Pin
Blake Miller9-Mar-05 4:44
Blake Miller9-Mar-05 4:44 
QuestionHow to prevent the user from moving a dialog dynamically Pin
caykahve8-Mar-05 23:53
caykahve8-Mar-05 23:53 

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.