summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2ToolHelpWnd.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2ToolHelpWnd.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to 'src/T2DLL/T2ToolHelpWnd.h')
-rw-r--r--src/T2DLL/T2ToolHelpWnd.h41
1 files changed, 22 insertions, 19 deletions
diff --git a/src/T2DLL/T2ToolHelpWnd.h b/src/T2DLL/T2ToolHelpWnd.h
index 13e95fa..c598b2d 100644
--- a/src/T2DLL/T2ToolHelpWnd.h
+++ b/src/T2DLL/T2ToolHelpWnd.h
@@ -1,28 +1,31 @@
#pragma once
#include "common.h"
-class T2ToolHelpWnd {
-public:
- static CObject* __stdcall CreateObject();
-protected:
- static CRuntimeClass* __stdcall _GetBaseClass();
+enum {
+ kToolHelpMode0 = 0,
+ kToolHelpMode1 = 1,
+ kToolHelpMode2 = 2
+};
+
+class AFX_EXT_CLASS T2ToolHelpWnd : public CFrameWnd {
+ DECLARE_DYNCREATE(T2ToolHelpWnd)
+ DECLARE_MESSAGE_MAP()
public:
- virtual CRuntimeClass* GetRuntimeClass() const;
T2ToolHelpWnd();
virtual ~T2ToolHelpWnd();
-protected:
- static const AFX_MSGMAP* __stdcall _GetBaseMessageMap();
- virtual const AFX_MSGMAP* GetMessageMap() const;
-public:
- void OpenToolHelp(POINT&, int, const char*, const char*, T2ToolDef*, int);
+ void OpenToolHelp(POINT& inPt, int inMode, const char* inStr1, const char* inStr2, T2ToolDef* inToolDef, int inValiation);
void CloseToolHelp();
+
protected:
- int OnEraseBkgnd(CDC*);
- void OnDestroy();
-public:
- static const CRuntimeClass classT2ToolHelpWnd;
-protected:
- static const AFX_MSGMAP messageMap;
-private:
- static const AFX_MSGMAP_ENTRY* const _messageEntries;
+ afx_msg BOOL OnEraseBkgnd(CDC* pDC);
+ afx_msg void OnDestroy();
+
+ CFont mFont;
+ CString mWndClass;
+ CRect mRect;
+ CRgn mRgn;
+ BOOL mVisible;
+ CString mHeader;
+ CString mText;
+ CString mComment;
};