balloonwnd.h

来自「vc编写的精灵显示源码」· C头文件 代码 · 共 54 行

H
54
字号
#if !defined( gS_BalloonWnd_DEFINED )
#define gS_BalloonWnd_DEFINED

#define B_ARROWLEFT		0
#define B_ARROWRIGHT	1
#define B_ARROWTOP		2
#define B_ARROWBOTTOM	3

/////////////////////////////////////////////////////////////////////////////
// CBalloonWnd window

class CBalloonWnd : public CWnd
{
public:
	CBalloonWnd();
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBalloonWnd)
	public:
	virtual BOOL Create(LPCTSTR strTitle, CRect rectClient, CWnd* pParent = NULL);
	protected:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

public:
	void SetSize();
	void ClientSize( int nWidth, int nHeight );
	void ShowBalloonEx( CRect rectParent );
	BOOL ShowBalloon( POINT point, int nArrowSide );
	virtual ~CBalloonWnd();

protected:
	CWnd m_wndInvisible;
	//{{AFX_MSG(CBalloonWnd)
	afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
	afx_msg void OnNcPaint();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	CRgn m_rWindowRgn;
	int m_nArrowSide;
	ATOM m_aAtom;
public:
	void CalcAndMove ( CRect rectParent );
	unsigned int m_nRoundX, m_nRoundY;
	unsigned int m_nArrowFM, m_nArrowSM;
	unsigned int m_nVMargin, m_nHMargin;
	unsigned int m_nAMargin;
	COLORREF m_crBackground, m_crFrame;
};

#endif // !defined(gS_BalloonWnd_DEFINED)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?