Click here to Skip to main content
15,845,785 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Who has the file opened? Pin
Peter Weyzen23-Oct-09 11:19
Peter Weyzen23-Oct-09 11:19 
GeneralRe: Who has the file opened? Pin
David Crow23-Oct-09 11:22
David Crow23-Oct-09 11:22 
QuestionProperty Sheet OnOK only calls property page1 OnOK override? [modified] Pin
al250023-Oct-09 9:19
al250023-Oct-09 9:19 
AnswerRe: Property Sheet OnOK only calls property page1 OnOK override? Pin
al250023-Oct-09 10:26
al250023-Oct-09 10:26 
AnswerRe: Property Sheet OnOK only calls property page1 OnOK override? Pin
David Crow23-Oct-09 10:51
David Crow23-Oct-09 10:51 
GeneralRe: Property Sheet OnOK only calls property page1 OnOK override? Pin
al250023-Oct-09 12:56
al250023-Oct-09 12:56 
GeneralRe: Property Sheet OnOK only calls property page1 OnOK override? Pin
David Crow23-Oct-09 15:52
David Crow23-Oct-09 15:52 
GeneralRe: Property Sheet OnOK only calls property page1 OnOK override? Pin
al250023-Oct-09 19:35
al250023-Oct-09 19:35 
David,

Thanks for your help - I see now that it calls OnOK (using afx_msg void OnOK()) for any pages that were viewed and I initially expected all pages to call OnOk regardless so I did not "view" them when testing...

However, I have verified that it only calls OnOK for pages that were viewed. This is OK with me but it might be good to understand why your behavior is different.

My code is -

For each page definition-

afx_msg void OnOK();

For each implementation -

ON_COMMAND(IDOK, OnOK)



void CPageN::OnOK()
{
AfxMessageBox("PageN");
CPropertyPage::OnOK();

}


Again, thanks for the help. It's actually much cleaner to perform any data validation/storage in the page implementation vs. the sheet implementation.
QuestionC++ troubles with basic openMP code. Pin
Andre_E_S23-Oct-09 7:41
Andre_E_S23-Oct-09 7:41 
AnswerRe: C++ troubles with basic openMP code. Pin
David Crow23-Oct-09 8:06
David Crow23-Oct-09 8:06 
GeneralRe: C++ troubles with basic openMP code. Pin
Andre_E_S23-Oct-09 9:25
Andre_E_S23-Oct-09 9:25 
QuestionUnicode and Rich Edit Control Pin
Software200723-Oct-09 6:47
Software200723-Oct-09 6:47 
AnswerRe: Unicode and Rich Edit Control Pin
Michael Schubert23-Oct-09 7:47
Michael Schubert23-Oct-09 7:47 
GeneralRe: Unicode and Rich Edit Control Pin
Software200723-Oct-09 8:13
Software200723-Oct-09 8:13 
GeneralRe: Unicode and Rich Edit Control Pin
Nemanja Trifunovic23-Oct-09 9:30
Nemanja Trifunovic23-Oct-09 9:30 
GeneralRe: Unicode and Rich Edit Control Pin
Software200723-Oct-09 9:53
Software200723-Oct-09 9:53 
GeneralRe: Unicode and Rich Edit Control Pin
Michael Schubert23-Oct-09 11:45
Michael Schubert23-Oct-09 11:45 
QuestionCHAR[260] to char* Pin
Nicola Curran23-Oct-09 5:56
Nicola Curran23-Oct-09 5:56 
AnswerRe: CHAR[260] to char* Pin
Rajesh R Subramanian23-Oct-09 6:03
professionalRajesh R Subramanian23-Oct-09 6:03 
GeneralRe: CHAR[260] to char* Pin
Nicola Curran23-Oct-09 6:14
Nicola Curran23-Oct-09 6:14 
AnswerRe: CHAR[260] to char* Pin
David Crow23-Oct-09 6:12
David Crow23-Oct-09 6:12 
GeneralRe: CHAR[260] to char* Pin
Nicola Curran23-Oct-09 6:21
Nicola Curran23-Oct-09 6:21 
GeneralRe: CHAR[260] to char* Pin
David Crow23-Oct-09 6:27
David Crow23-Oct-09 6:27 
AnswerRe: CHAR[260] to char* Pin
Richard MacCutchan23-Oct-09 6:14
mveRichard MacCutchan23-Oct-09 6:14 
GeneralRe: CHAR[260] to char* Pin
Nicola Curran23-Oct-09 6:16
Nicola Curran23-Oct-09 6:16 

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.