summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2BalloonWnd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/T2DLL/T2BalloonWnd.h')
-rw-r--r--src/T2DLL/T2BalloonWnd.h45
1 files changed, 22 insertions, 23 deletions
diff --git a/src/T2DLL/T2BalloonWnd.h b/src/T2DLL/T2BalloonWnd.h
index 35cd1a2..b69302e 100644
--- a/src/T2DLL/T2BalloonWnd.h
+++ b/src/T2DLL/T2BalloonWnd.h
@@ -1,31 +1,30 @@
#pragma once
#include "common.h"
-class T2BalloonWnd {
-public:
- static CObject* __stdcall CreateObject();
-protected:
- static CRuntimeClass* __stdcall _GetBaseClass();
+class AFX_EXT_CLASS T2BalloonWnd : public CFrameWnd {
+ DECLARE_DYNCREATE(T2BalloonWnd)
+ DECLARE_MESSAGE_MAP()
+
public:
- virtual CRuntimeClass* GetRuntimeClass() const;
T2BalloonWnd();
virtual ~T2BalloonWnd();
+ void Show(int inX, int inY, const CString& inText, BOOL inIsPause);
+
protected:
- static const AFX_MSGMAP* __stdcall _GetBaseMessageMap();
- virtual const AFX_MSGMAP* GetMessageMap() const;
-public:
- void Show(int, int, const CString&, int);
-protected:
- int OnEraseBkgnd(CDC*);
- void OnLButtonDown(unsigned int, CPoint);
- void OnRButtonDown(unsigned int, CPoint);
- void OnMouseMove(unsigned int, CPoint);
- void OnTimer(unsigned int);
- void OnDestroy();
-public:
- static const CRuntimeClass classT2BalloonWnd;
-protected:
- static const AFX_MSGMAP messageMap;
-private:
- static const AFX_MSGMAP_ENTRY* const _messageEntries;
+ afx_msg BOOL OnEraseBkgnd(CDC* pDC);
+ afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
+ afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
+ afx_msg void OnMouseMove(UINT nFlags, CPoint point);
+ afx_msg void OnTimer(UINT nIDEvent);
+ afx_msg void OnDestroy();
+
+ CFont mFont;
+ CString mWndClass;
+ CRect mRect1;
+ CRect mRect2;
+ int mDirection;
+ CRgn mRgn;
+ BOOL mVisible;
+ POINT mStartCursorPos;
+ BOOL mIsPause;
};