Click here to Skip to main content
15,921,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionint treated as binary no. Pin
Manmohan2923-Oct-09 10:41
Manmohan2923-Oct-09 10:41 
AnswerRe: int treated as binary no. Pin
David Crow23-Oct-09 10:45
David Crow23-Oct-09 10:45 
GeneralRe: int treated as binary no. Pin
Manmohan2923-Oct-09 10:58
Manmohan2923-Oct-09 10:58 
AnswerRe: int treated as binary no. Pin
David Crow23-Oct-09 11:04
David Crow23-Oct-09 11:04 
GeneralRe: int treated as binary no. Pin
Manmohan2923-Oct-09 11:16
Manmohan2923-Oct-09 11:16 
GeneralRe: int treated as binary no. Pin
David Crow23-Oct-09 15:08
David Crow23-Oct-09 15:08 
QuestionScrollbars are shown incorrectly. Pin
Nikz223-Oct-09 10:01
Nikz223-Oct-09 10:01 
AnswerRe: Scrollbars are shown incorrectly. [modified] Pin
Nikz223-Oct-09 12:17
Nikz223-Oct-09 12:17 
GeneralRe: Scrollbars are shown incorrectly. Pin
«_Superman_»23-Oct-09 12:31
professional«_Superman_»23-Oct-09 12:31 
GeneralRe: Scrollbars are shown incorrectly. Pin
Nikz223-Oct-09 12:53
Nikz223-Oct-09 12:53 
GeneralRe: Scrollbars are shown incorrectly. Pin
«_Superman_»23-Oct-09 13:01
professional«_Superman_»23-Oct-09 13:01 
GeneralSolution Pin
Nikz223-Oct-09 14:07
Nikz223-Oct-09 14:07 
GeneralRe: Scrollbars are shown incorrectly. Pin
«_Superman_»23-Oct-09 14:15
professional«_Superman_»23-Oct-09 14:15 
QuestionLooking for Mathematical Expressions Evaluator Pin
Tony Teveris23-Oct-09 9:25
Tony Teveris23-Oct-09 9:25 
AnswerRe: Looking for Mathematical Expressions Evaluator Pin
David Crow23-Oct-09 9:33
David Crow23-Oct-09 9:33 
QuestionWho has the file opened? Pin
Peter Weyzen23-Oct-09 9:11
Peter Weyzen23-Oct-09 9:11 
QuestionRe: Who has the file opened? Pin
David Crow23-Oct-09 9:34
David Crow23-Oct-09 9:34 
AnswerRe: Who has the file opened? Pin
Peter Weyzen23-Oct-09 10:19
Peter Weyzen23-Oct-09 10:19 
GeneralRe: Who has the file opened? Pin
David Crow23-Oct-09 10:22
David Crow23-Oct-09 10:22 
QuestionProperty Sheet OnOK only calls property page1 OnOK override? [modified] Pin
al250023-Oct-09 8:19
al250023-Oct-09 8:19 
AnswerRe: Property Sheet OnOK only calls property page1 OnOK override? Pin
al250023-Oct-09 9:26
al250023-Oct-09 9:26 
AnswerRe: Property Sheet OnOK only calls property page1 OnOK override? Pin
David Crow23-Oct-09 9:51
David Crow23-Oct-09 9:51 
GeneralRe: Property Sheet OnOK only calls property page1 OnOK override? Pin
al250023-Oct-09 11:56
al250023-Oct-09 11:56 
GeneralRe: Property Sheet OnOK only calls property page1 OnOK override? Pin
David Crow23-Oct-09 14:52
David Crow23-Oct-09 14:52 
GeneralRe: Property Sheet OnOK only calls property page1 OnOK override? Pin
al250023-Oct-09 18:35
al250023-Oct-09 18: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.

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.