Click here to Skip to main content
15,910,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Obtaining screen dimensions Pin
gokings9-Aug-04 1:56
gokings9-Aug-04 1:56 
GeneralOne more... Pin
Ravi Bhavnani9-Aug-04 2:50
professionalRavi Bhavnani9-Aug-04 2:50 
GeneralCedit control, paste problem Pin
Safika9-Aug-04 0:11
Safika9-Aug-04 0:11 
GeneralRe: Cedit control, paste problem Pin
Jaime Stuardo9-Aug-04 3:55
Jaime Stuardo9-Aug-04 3:55 
GeneralRe: Cedit control, paste problem Pin
Safika9-Aug-04 5:30
Safika9-Aug-04 5:30 
GeneralMS word automation examples Pin
tiziacaia9-Aug-04 0:10
tiziacaia9-Aug-04 0:10 
GeneralRe: MS word automation examples Pin
V.9-Aug-04 1:15
professionalV.9-Aug-04 1:15 
GeneralRe: MS word automation examples Pin
David Crow9-Aug-04 2:42
David Crow9-Aug-04 2:42 
GeneralRe: MS word automation examples Pin
tiziacaia9-Aug-04 5:00
tiziacaia9-Aug-04 5:00 
GeneralRe: MS word automation examples Pin
David Crow9-Aug-04 5:12
David Crow9-Aug-04 5:12 
GeneralRe: MS word automation examples Pin
tiziacaia9-Aug-04 5:22
tiziacaia9-Aug-04 5:22 
GeneralRe: MS word automation examples Pin
David Crow9-Aug-04 5:31
David Crow9-Aug-04 5:31 
GeneralRe: MS word automation examples Pin
tiziacaia9-Aug-04 5:36
tiziacaia9-Aug-04 5:36 
Questionwhy world so cruel for sleep( ) ing..?? Pin
TssPrasad8-Aug-04 23:21
sussTssPrasad8-Aug-04 23:21 
AnswerRe: why world so cruel for sleep( ) ing..?? Pin
Antti Keskinen8-Aug-04 23:29
Antti Keskinen8-Aug-04 23:29 
GeneralRe: why world so cruel for sleep( ) ing..?? Pin
Anonymous9-Aug-04 5:55
Anonymous9-Aug-04 5:55 
Questionwhy world so cruel for sleep( ) ing..?? Pin
TssPrasad8-Aug-04 23:20
sussTssPrasad8-Aug-04 23:20 
Questionwhy world so cruel for sleep( ) ing..?? Pin
Shiva Prasad8-Aug-04 23:20
Shiva Prasad8-Aug-04 23:20 
GeneralDatabase Records Pin
Neelesh K J Jain8-Aug-04 23:10
Neelesh K J Jain8-Aug-04 23:10 
GeneralRe: Database Records Pin
Antti Keskinen8-Aug-04 23:24
Antti Keskinen8-Aug-04 23:24 
GeneralRe: Database Records Pin
David Crow9-Aug-04 2:52
David Crow9-Aug-04 2:52 
GeneralDatabase Records Pin
Neelesh K J Jain8-Aug-04 23:05
Neelesh K J Jain8-Aug-04 23:05 
QuestionHow to call different dialog box on a property sheet clicking on OK buttton?. Pin
Rajesh_K_Sharma8-Aug-04 22:39
Rajesh_K_Sharma8-Aug-04 22:39 
Hi

I made three property pages on a property sheet.
Page1,Page2 and Page3.
A property sheet contains three button (OK, Cancel and Apply Buttons).
I also made three - dialog box.
Dialog1,Dialog2 and Dialog3.

Now ,I would like to do that when we select page1 and click on OK button on
a property sheet then dialog1 should be called.Similarly,when we select page2 and click
on OK button on a property sheet then dialog2 should be called. Similarly on page3.

I wrote some code:-

BOOL CPropertySheet::OnCommand(WPARAM wParam, LPARAM lParam)
{



if (LOWORD(wParam)==IDOK) {
CPage1* page1;
page1=(CPage1*)GetPage(0);
page1->UpdateData(TRUE);
CDialog1 dlg1;
dlg1.DoModal();
page1->UpdateData(TRUE);


CPage2* page2;
page2=(CPage2*)GetPage(1);
page2->UpdateData(TRUE);
CDialog2 dlg2;
dlg2.DoModal();
page2->UpdateData(TRUE);



CPage3* page3;
page3=(CPage3*)GetPage(2);
page3->UpdateData(TRUE);
CDialog3 dlg3;
dlg3.DoModal();
page3->UpdateData(TRUE);


return TRUE;
} else

return CPropertySheet::OnCommand(wParam, lParam);

}

What should I write the code ?


Any help appreciated .



rajesh
AnswerRe: How to call different dialog box on a property sheet clicking on OK buttton?. Pin
David Crow9-Aug-04 3:00
David Crow9-Aug-04 3:00 
GeneralOpenScManager() Pin
Anonymous8-Aug-04 22:11
Anonymous8-Aug-04 22:11 

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.