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

📄 jnsedit.h

📁 此次上传的使linux下的文件传输协议
💻 H
字号:
#if !defined(AFX_JNSEDIT_H__4BD863A3_7064_11D4_B422_5254AB16C814__INCLUDED_)
#define AFX_JNSEDIT_H__4BD863A3_7064_11D4_B422_5254AB16C814__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// JnSEdit window

class JnSEdit : public CEdit
{
// Construction
public:
	JnSEdit();
	JnSEdit& SetFontBold(BOOL bBold);
	JnSEdit& SetFontName(const CString& strFont);
	JnSEdit& SetFontUnderline(BOOL bSet);
	JnSEdit& SetFontItalic(BOOL bSet);
	JnSEdit& SetFontSize(int nSize);
	void SetNumber(BOOL bNumber,int nWei);
// Attributes
public:
	void ReconstructFont();
	LOGFONT		m_lf;
	CFont		m_font;
	int _nWei;
	BOOL _bNumber;
	CBrush   m_brBkGround;
    COLORREF m_crBkColor;
    COLORREF m_crTextColor;
// Operations
public:

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

// Implementation
public:
	void SetRead(BOOL bSet);
	BOOL bRead;
	void GetFontLog(LOGFONT& plf);
	void SetFontLog(LOGFONT& plf, int nType=1);
	CString GetFontName();
	BOOL GetFontB();
	BOOL GetFontU();
	BOOL GetFontI();
	int GetFontSize();
	virtual ~JnSEdit();
    void SetBkColor(COLORREF color);    
    void SetTextColor(COLORREF color);
    COLORREF GetBkColor()   const { return m_crBkColor;   }   
    COLORREF GetTextColor() const { return m_crTextColor; }

	// Generated message map functions
protected:
	//{{AFX_MSG(JnSEdit)
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	//}}AFX_MSG
    afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
	DECLARE_MESSAGE_MAP()
    virtual BOOL CreateBrushType();
};

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

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

#endif // !defined(AFX_JNSEDIT_H__4BD863A3_7064_11D4_B422_5254AB16C814__INCLUDED_)

⌨️ 快捷键说明

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