Click here to Skip to main content
15,917,652 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: dll not been made Pin
Hamid_RT3-Jun-08 1:23
Hamid_RT3-Jun-08 1:23 
QuestionCommunications between dialogs Pin
Trupti Mehta2-Jun-08 2:44
Trupti Mehta2-Jun-08 2:44 
AnswerRe: Communications between dialogs Pin
KarstenK2-Jun-08 2:54
mveKarstenK2-Jun-08 2:54 
GeneralRe: Communications between dialogs Pin
Trupti Mehta2-Jun-08 3:10
Trupti Mehta2-Jun-08 3:10 
AnswerRe: Communications between dialogs Pin
David Crow2-Jun-08 3:26
David Crow2-Jun-08 3:26 
AnswerRe: Communications between dialogs Pin
Jijo.Raj2-Jun-08 19:49
Jijo.Raj2-Jun-08 19:49 
GeneralRe: Communications between dialogs Pin
Trupti Mehta2-Jun-08 22:11
Trupti Mehta2-Jun-08 22:11 
GeneralRe: Communications between dialogs Pin
Jijo.Raj3-Jun-08 8:10
Jijo.Raj3-Jun-08 8:10 
Terry,

I hope in your parent dialog, you're creating instance of child dialog and shows it by calling DoModel().

Instead of child dialog sending message to parent, just close the child dialog by calling EndDialog() function. In the EndDialog() you can give a parameter which will be returned by the DoModel() function. So by checking the return code of ChildDialog.DoModel(), you can show next dialog. For instance,

void CParentDialog::ShowChildDialog() 
{
    CDialogDlg ChildDialog;
    if( SHOW_NEXT_DIALOG == ChildDialog.DoModal())
    {
        // Show your next child dialog.
    }
}

// In child dialog
void ChildDialog::OnNextDialog() 
{
    // The SHOW_NEXT_DIALOG will be returned by the DoModel() call.
    EndDialog( SHOW_NEXT_DIALOG );
}


Here in the e.g. if the DoModel() returns SHOW_NEXT_DIALOG, then its the request to show next dialog.
Just try this. Just let me know if you've more issues.

Regards,
Jijo.

_____________________________________________________

http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

GeneralRe: Communications between dialogs Pin
Trupti Mehta3-Jun-08 21:26
Trupti Mehta3-Jun-08 21:26 
GeneralRe: Communications between dialogs Pin
Jijo.Raj4-Jun-08 3:27
Jijo.Raj4-Jun-08 3:27 
QuestionConverting GUID to Hex Pin
Shivarudrayya H2-Jun-08 2:42
Shivarudrayya H2-Jun-08 2:42 
AnswerRe: Converting GUID to Hex [modified] Pin
Rajkumar R2-Jun-08 3:21
Rajkumar R2-Jun-08 3:21 
QuestionON_MESSAGE & ON_THREAD_MESSAGE Pin
thenewbee2-Jun-08 2:32
thenewbee2-Jun-08 2:32 
AnswerRe: ON_MESSAGE & ON_THREAD_MESSAGE Pin
KarstenK2-Jun-08 2:44
mveKarstenK2-Jun-08 2:44 
GeneralRe: ON_MESSAGE & ON_THREAD_MESSAGE Pin
thenewbee2-Jun-08 17:54
thenewbee2-Jun-08 17:54 
QuestionWhy does CStringArray not have a find method? Pin
Rajesh R Subramanian2-Jun-08 2:09
professionalRajesh R Subramanian2-Jun-08 2:09 
AnswerRe: Why does CStringArray not have a find method? Pin
KarstenK2-Jun-08 2:37
mveKarstenK2-Jun-08 2:37 
GeneralRe: Why does CStringArray not have a find method? Pin
Rajesh R Subramanian2-Jun-08 2:46
professionalRajesh R Subramanian2-Jun-08 2:46 
AnswerRe: Why does CStringArray not have a find method? Pin
prasad_som2-Jun-08 5:52
prasad_som2-Jun-08 5:52 
GeneralRe: Why does CStringArray not have a find method? Pin
Rajesh R Subramanian3-Jun-08 0:21
professionalRajesh R Subramanian3-Jun-08 0:21 
GeneralRe: Why does CStringArray not have a find method? Pin
prasad_som3-Jun-08 2:08
prasad_som3-Jun-08 2:08 
GeneralRe: Why does CStringArray not have a find method? Pin
Rajesh R Subramanian3-Jun-08 3:32
professionalRajesh R Subramanian3-Jun-08 3:32 
QuestionDifference among INT, INT32, LONG, LONG32...? Pin
Maxim Zarus2-Jun-08 1:07
Maxim Zarus2-Jun-08 1:07 
AnswerRe: Difference among INT, INT32, LONG, LONG32...? Pin
SandipG 2-Jun-08 1:10
SandipG 2-Jun-08 1:10 
GeneralRe: Difference among INT, INT32, LONG, LONG32...? Pin
Maxim Zarus2-Jun-08 1:21
Maxim Zarus2-Jun-08 1:21 

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.