I have a MFC dialog based application.
The main dialog contain a child dialog (used in a CTabCtrl control).
CDialog mainDlgClass;
CMyChildDialog childDlgClass;
How I can be able to modify the controls of the child dialog from the main dialog or the possibility to send a message, eg: via PostMessage and using RegisterWindowMessage
so I can modify the child dialog's controls?
I dont know howto retrieve a handle of the child dialog.
void mainDlgClass::check()
{
if(condition)
PostMessage_to_the_child_dialog(***);
OR
if(condition)
Modify_CStatic_text_on_the_child_dialog(***);
}
Edit:
Screenshot of the structure:
Resource editor
Main dialog + CTabCtrl containing the ChidlDialog
Child dialog have WS_CHILD property set.
Resolved.