controlsex.h

来自「本文件包包含了大量用VC++开发的应用程序界面」· C头文件 代码 · 共 116 行

H
116
字号
#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 + =
减小字号Ctrl + -
显示快捷键?