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

📄 mystatic.h

📁 这是采用mfc编写的工资管理系统
💻 H
字号:
#if !defined(AFX_MYSTATIC_H__8C3D63CB_3DAF_499A_B578_CFCDE7516AC0__INCLUDED_)
#define AFX_MYSTATIC_H__8C3D63CB_3DAF_499A_B578_CFCDE7516AC0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MyStatic.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CMyStatic window

class CMyStatic : public CStatic
{
// Construction
public:
	CMyStatic();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyStatic)
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetToopTip(CWnd* pCtrl,const UINT nIDStringIn,const UINT nIDStringOut);
	void SetRedraw(BOOL redraw=TRUE);
	void RemoveTransparent();
	void GetLogfont(LOGFONT &logfont);
	void SetTextColor(COLORREF crText);
	void SetMouseMove(BOOL isRespond=TRUE,COLORREF color=RGB(255,0,0));
	void SetFont(LOGFONT logfont);
	void Init();
	HCURSOR m_hHandCur;
	COLORREF m_crText;
	CFont m_font;
	BOOL m_bOver;

	virtual ~CMyStatic();

	// Generated message map functions
protected:
	//{{AFX_MSG(CMyStatic)
	afx_msg void OnPaint();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
private:
	UINT m_nIDStringIn;		//显示鼠标移动到该控件时信息提示的字符串ID
	UINT m_nIDStringOut;		//显示鼠标移出该控件时信息提示的字符串ID
	CWnd* m_pCtrl;		//显示鼠标移动时信息提示的控件ID
	BOOL m_isRedraw;
	BOOL m_transparent;
	COLORREF m_crMouse;
	COLORREF m_crFirst;
	BOOL m_bMouseMove;		//是否响应鼠标移动消息
	LOGFONT m_logFont;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYSTATIC_H__8C3D63CB_3DAF_499A_B578_CFCDE7516AC0__INCLUDED_)

⌨️ 快捷键说明

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