1 //#ifndef __ModuleSettings_h__
2 //#define __ModuleSettings_h__
4 #include "../DasherCore/DasherInterfaceBase.h"
5 #include "ModuleControl.h"
11 extern CONST UINT WM_MS_CLOSE
;
12 #define _WM_MS_CLOSE (LPCWSTR)"wm_ms_close"
14 class CModuleSettings
: public CWindowImpl
<CModuleSettings
> {
16 CModuleSettings(const std::string
&strModuleName
, SModuleSettings
*pSettings
, int iCount
, CDasherInterfaceBase
*pInterface
);
19 void Create(HWND hWndParent
, ATL::_U_RECT rect
);
21 DECLARE_WND_CLASS(NULL
);
23 BEGIN_MSG_MAP(CModuleSettings
)
24 MESSAGE_HANDLER(WM_COMMAND
, OnCommand
)
25 MESSAGE_HANDLER(WM_PAINT
, OnPaint
)
26 MESSAGE_HANDLER(WM_SIZE
, OnSize
)
29 LRESULT
OnCommand(UINT message
, WPARAM wParam
, LPARAM lParam
, BOOL
& bHandled
);
30 LRESULT
OnPaint(UINT message
, WPARAM wParam
, LPARAM lParam
, BOOL
& bHandled
);
31 LRESULT
OnSize(UINT message
, WPARAM wParam
, LPARAM lParam
, BOOL
& bHandled
);
33 virtual void OnFinalMessage(HWND hWnd
) {
39 CModuleControl
**m_pControls
;
40 std::string m_strModuleName
;
47 CDasherInterfaceBase
*m_pInterface
;