MainDlg.h // MainDlg.h : interface of the CMainDlg class // ///////////////////////////////////////////////////////////////////////////// #pragma once class CMainDlg : public CDialogImpl<CMainDlg> { public: enum { IDD = IDD_MAINDLG }; BEGIN_MSG_MAP(…
1.让对话框从CdialogResize类继承过来: class CMainDlg : public CDialogImpl<CMainDlg>, public CDoubleBufferImpl<CMainDlg>, public CDialogResize<CMainDlg> 2.添加消息路由 BEGIN_MSG_MAP(CMainDlg) CHAIN_MSG_MAP(CDialogResize<CMainDlg>) CHAIN_MSG_MAP(CDou…
extern "C" DllExport void ufusr(char *param, int *retcod, int param_len) { if (UF_initialize()) { /* Failed to initialize */ return; } // The following method shows the dialog immediately AFX_MANAGE_STATE(AfxGetStaticModuleState()); HWND UGHwnd…