正在加载图片...
VC++ Programming@UESTC Chapter 7 The modeless dialog and Windows Common Dialogs The m p view points to the view object of this application which really contains the user-defined message hanlder ● In cex07 a view . h afx msg LRESULT On Goodbye( WPARaM wParam, LPARAM IParam) e In CEx07a Viewcpp LRESULT CEXO7a View:: OnGoodbye(WPARAM wParam, LPARAM IParam)i message received in response to modeless dialog OK and Cancel buttons m pDIg->Destroy Window return OL; BEGIN MESSAGE MAP(CEXO7a view, C View) ON MESSAGE(WM GOODBYE, OnGoodbyeVC++ Programming @ UESTC 7 ⚫ The m_pView points to the view object of this application , which really contains the user-defined message hanlder. ⚫ In CEx07aView.h afx_msg LRESULT OnGoodbye(WPARAM wParam, LPARAM lParam); ⚫ In CEx07aView.cpp LRESULT CEx07aView::OnGoodbye(WPARAM wParam, LPARAM lParam){ // message received in response to modeless dialog OK and Cancel buttons m_pDlg->DestroyWindow(); return 0L;} BEGIN_MESSAGE_MAP(CEx07aView, CView) ON_MESSAGE(WM_GOODBYE, OnGoodbye) Chapter 7 The Modeless Dialog and Windows Common Dialogs
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有