#pragma once #include "common.h" class AFX_EXT_CLASS T2BalloonWnd : public CFrameWnd { DECLARE_DYNCREATE(T2BalloonWnd) DECLARE_MESSAGE_MAP() public: T2BalloonWnd(); virtual ~T2BalloonWnd(); void Show(int inX, int inY, const CString& inText, BOOL inIsPause); protected: 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; };