I want to create a resource-based dialog, and before displaying it with DoModal, get a pointer to a dialog item. If I do..
CDialog d(ID_RS);
blabla = ..d.GetDlgItem(ID_RS2);
d.DoModal();
.. the program crashes at GetDlgItem. It seems the the resource isn't actually loaded until DoModal.. How can I initialize the dialog completely before displaying it modally?
CDialog d(ID_RS);
blabla = ..d.GetDlgItem(ID_RS2);
d.DoModal();
.. the program crashes at GetDlgItem. It seems the the resource isn't actually loaded until DoModal.. How can I initialize the dialog completely before displaying it modally?