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/T2Message.h | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'src/T2DLL/T2Message.h') diff --git a/src/T2DLL/T2Message.h b/src/T2DLL/T2Message.h index 816cc61..7b16240 100644 --- a/src/T2DLL/T2Message.h +++ b/src/T2DLL/T2Message.h @@ -1,24 +1,29 @@ #pragma once #include "common.h" -class T2Message { +class AFX_EXT_CLASS T2Message : public CWnd { + DECLARE_MESSAGE_MAP() public: T2Message(); void ShowMessage(const CString&); protected: virtual ~T2Message(); - static const AFX_MSGMAP* __stdcall _GetBaseMessageMap(); - virtual const AFX_MSGMAP* GetMessageMap() const; virtual void PostNcDestroy(); - int OnCreate(CREATESTRUCTA*); + int OnCreate(CREATESTRUCT*); void OnTimer(unsigned int); - long OnHookMessage(unsigned int, long); - void OnLButtonDown(unsigned int, CPoint); - void OnRButtonDown(unsigned int, CPoint); - void OnKeyDown(unsigned int, unsigned int, unsigned int); + long OnHookMessage(UINT, LONG); + void OnLButtonDown(UINT, CPoint); + void OnRButtonDown(UINT, CPoint); + void OnKeyDown(UINT, UINT, UINT); void OnDestroy(); int OnEraseBkgnd(CDC*); - static const AFX_MSGMAP messageMap; -private: - static const AFX_MSGMAP_ENTRY* const _messageEntries; + +protected: + CString mString; + CFont mFont; + CBrush mBrush; + CRect mRect1; + CRect mRect2; + int m74; + BOOL m78; }; -- cgit v1.2.3