1 #ifndef __ModuleControl_h__
2 #define __ModuleControl_h__
4 #include "../Common/WinCommon.h"
5 #include "../DasherCore/DasherInterfaceBase.h"
11 class CModuleControl
: public CWindowImpl
<CModuleControl
> {
13 CModuleControl(SModuleSettings
*pSetting
);
15 DECLARE_WND_SUPERCLASS(NULL
, L
"STATIC")
17 BEGIN_MSG_MAP(CModuleControl
)
18 MESSAGE_HANDLER(WM_NOTIFY
, OnNotify
)
19 MESSAGE_HANDLER(WM_HSCROLL
, OnScroll
)
22 virtual LRESULT
OnNotify(UINT message
, WPARAM wParam
, LPARAM lParam
, BOOL
& bHandled
) {
27 virtual LRESULT
OnScroll(UINT message
, WPARAM wParam
, LPARAM lParam
, BOOL
& bHandled
) {
32 void Create(HWND hParent
);
33 void Layout(RECT
*pRect
);
35 // Abstract members to be implemented by descendents
36 virtual int GetHeightRequest() = 0;
37 virtual void Initialise(CDasherInterfaceBase
*pInterface
) = 0;
38 virtual void Apply(CDasherInterfaceBase
*pInterface
) = 0;
39 virtual void CreateChild(HWND hParent
) = 0;
40 virtual void LayoutChild(RECT
&sRect
) = 0;
44 std::wstring m_strCaption
;