⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 balloonwnd.h

📁 vc编写的精灵显示源码
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -