The framework calls this member function in response to the WM_INITDIALOG message. This message is sent to the dialog box during the Create, CreateIndirect, or DoModal calls, which occur immediately before the dialog box is displayed.
virtual BOOL OnInitDialog( );
| Header File | Afxwin.h |
| Platforms | |
| Versions | 1.0 and later |
| Complete documentation | Visual C++ documentation |
CDialog Overview, CDialog Member Functions, Dialog Box Classes, CDialog::Create, CDialog::CreateIndirect