From c0c336500955a23e344651e5412c9d9d441ef4ee Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 28 Jun 2023 22:22:32 +0100 Subject: first pass of T2DLL --- src/T2DLL/T2ToolHelpWnd.h | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) (limited to 'src/T2DLL/T2ToolHelpWnd.h') 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; }; -- cgit v1.2.3