VC++ Programming UESTC Chapter 6 The Modal Dialog and windows common Controls 5. Write codes for special control initialization (in OnInitDialog) and for the message handler. Check the OnoK function 6. Write codes in your view class to activate the dialog. Call constructor first, then call DoModal dialog member functionVC++ Programming @ UESTC 6 5. Write codes for special control initialization (in OnInitDialog) and for the message handler. Check the OnOK function. 6. Write codes in your view class to activate the dialog. Call constructor first, then call DoModal() dialog member function. Chapter 6 The Modal Dialog and Windows Common Controls