正在加载图片...
VC++ Programming UESTC Chapter 7 The modeless dialog and Windows Common Dialogs Let think it over again The used-defined message inside dialog class and sends out the message to the view o The view handle the message do necessary jobs and finally destroy the modeless dialog window The view and modeless dialog have a pointer pointing to each other Inside view, create the modeless dialog window if(m pDlg->Get Safe Hwnd==0)i m pDIg->Created; //displays the dialog window j o Inside view destructor delete m pDIgVC++ Programming @ UESTC 8 ⚫ Let think it over again. ⚫ The used-defined message inside dialog class and sends out the message to the view. ⚫ The view handle the message , do necessary jobs, and finally destroy the modeless dialog window. ⚫ The view and modeless dialog have a pointer pointing to each other. ⚫ Inside view, create the modeless dialog window if (m_pDlg->GetSafeHwnd() == 0) { m_pDlg->Create(); // displays the dialog window} ⚫ Inside view destructor delete m_pDlg; Chapter 7 The Modeless Dialog and Windows Common Dialogs
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有