#pragma once #include "stdafx.h" #include "MBDocCommomFtn.h" /************************************************************************/ /* ´´½¨Ä¿Â¼µ¯´° */ /************************************************************************/ class CMBCreateDirWnd: public SHostDialog { public: CMBCreateDirWnd(void); ~CMBCreateDirWnd(void); private: BOOL m_bLayoutInited; // ³õʼ»¯±êʶ CMBDocCommomFtn *m_pDocCommomFtn; // ͨÓù¦ÄÜ public: int OnCreate(LPCREATESTRUCT lpCreateStruct); BOOL OnInitDialog(HWND wndFocus, LPARAM lInitParam); void OnBtnAnther(); // ÔÙ´´½¨Ò»¸ö void OnBtnDetermine(); // È·¶¨ protected: //souiÏûÏ¢ EVENT_MAP_BEGIN() EVENT_NAME_COMMAND(L"btn_determine", OnBtnDetermine) EVENT_NAME_COMMAND(L"btn_another", OnBtnAnther) EVENT_MAP_END() //HostWndÕæÊµ´°¿ÚÏûÏ¢´¦Àí BEGIN_MSG_MAP_EX(CMBCreateDirWnd) MSG_WM_CREATE(OnCreate) MSG_WM_INITDIALOG(OnInitDialog) // ¼ì²â¿ì½Ý¼ü MSG_WM_KEYDOWN(OnKeyDown) CHAIN_MSG_MAP(SHostDialog) REFLECT_NOTIFICATIONS_EX() END_MSG_MAP() private: void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); public: void SetDocCommomFtn(CMBDocCommomFtn *pDocCommomFtn); // ÉèÖà };