Click here to Skip to main content
15,902,866 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: OpenScManager() Pin
Mike Beckerleg9-Aug-04 0:34
Mike Beckerleg9-Aug-04 0:34 
GeneralRe: OpenScManager() Pin
Anonymous9-Aug-04 1:05
Anonymous9-Aug-04 1:05 
GeneralRe: OpenScManager() Pin
Mike Beckerleg9-Aug-04 1:08
Mike Beckerleg9-Aug-04 1:08 
GeneralEmbedded CDateTimeCtrl in CListCtrl Pin
mace8-Aug-04 21:53
mace8-Aug-04 21:53 
GeneralRe: Embedded CDateTimeCtrl in CListCtrl Pin
David Crow9-Aug-04 3:05
David Crow9-Aug-04 3:05 
GeneralRe: Embedded CDateTimeCtrl in CListCtrl Pin
mace9-Aug-04 3:38
mace9-Aug-04 3:38 
GeneralRe: Embedded CDateTimeCtrl in CListCtrl Pin
Anonymous9-Aug-04 5:58
Anonymous9-Aug-04 5:58 
GeneralRe: Embedded CDateTimeCtrl in CListCtrl Pin
mace9-Aug-04 6:27
mace9-Aug-04 6:27 
GeneralRe: Embedded CDateTimeCtrl in CListCtrl Pin
mace9-Aug-04 23:43
mace9-Aug-04 23:43 
QuestionJET Engine differences? Pin
Danoo8-Aug-04 21:44
Danoo8-Aug-04 21:44 
GeneralInstead of STL List Pin
.NetRams8-Aug-04 21:22
.NetRams8-Aug-04 21:22 
GeneralRe: Instead of STL List Pin
gokings9-Aug-04 1:15
gokings9-Aug-04 1:15 
GeneralRe: Instead of STL List Pin
.NetRams9-Aug-04 18:09
.NetRams9-Aug-04 18:09 
QuestionHow to stop, pause and set Timer while palying a Wave file Pin
shiva shankar8-Aug-04 20:49
shiva shankar8-Aug-04 20:49 
GeneralMemory leaks Pin
r i s h a b h s8-Aug-04 20:38
r i s h a b h s8-Aug-04 20:38 

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.