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

📄 controlsex.h

📁 这些源代码
💻 H
字号:
#if !defined(AFX_CONTROLSEX_H__A92E9CE7_8A0C_11D1_BBFD_444553540000__INCLUDED_)
#define AFX_CONTROLSEX_H__A92E9CE7_8A0C_11D1_BBFD_444553540000__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CEditEx window

class CEditEx : public CEdit
{
// Construction
public:
	CEditEx(COLORREF fore = 0x000000, COLORREF back = 0xffffff);

// Attributes
public:

// Operations
public:

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

// Implementation
public:
	virtual ~CEditEx();

	virtual void	SetBackColor (COLORREF cr);
	virtual void	SetCharColor (COLORREF cr);
	virtual COLORREF	GetCharColor ();
	virtual COLORREF	GetBackColor ();
	BOOL Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID );

	// Generated message map functions
protected:
	//{{AFX_MSG(CEditEx)
	afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
	afx_msg void OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG

	COLORREF	m_clrText, m_clrBkgnd;
	CBrush		m_brBkgnd;

	DECLARE_MESSAGE_MAP()
};

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

/////////////////////////////////////////////////////////////////////////////
// CStaticEx window

class CStaticEx : public CStatic
{
// Construction
public:
	CStaticEx(COLORREF fore = 0x000000, COLORREF back = 0xC0C0C0);

	enum
	{
		parmPointSize = 1,
		parmSetWidth
	};

// Attributes
public:

// Operations
public:

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

// Implementation
public:
	virtual ~CStaticEx();

	virtual void	SetBackColor (COLORREF cr);
	virtual void	SetCharColor (COLORREF cr);
	virtual COLORREF	GetCharColor ();
	virtual COLORREF	GetBackColor ();
	void				SetFont (CFont *cfont, BOOL redraw = TRUE);
	virtual void		SetFont (CString & strFont);
	int					SetSetWidth (float newSetWidth);
	int					SetPointSize (float newPointSize);
	int					SetTypeParam (int parm, float newParam);

	// Generated message map functions
protected:
	//{{AFX_MSG(CStaticEx)
	afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
	//}}AFX_MSG

	COLORREF	m_clrText, m_clrBkgnd;
	CBrush		m_brBkgnd;
	CFont		*m_Font;
	CString		m_FontFace;
	int			m_PointSize;
	int			m_SetWidth;

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CONTROLSEX_H__A92E9CE7_8A0C_11D1_BBFD_444553540000__INCLUDED_)

⌨️ 快捷键说明

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