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

📄 cedit.h

📁 PGP8.0源码 请认真阅读您的文件包然后写出其具体功能
💻 H
字号:
/*____________________________________________________________________________
		Copyright (C) 2002 PGP Corporation
        All rights reserved.

        $Id: CEdit.h,v 1.7 2002/11/05 02:10:53 wjb Exp $
____________________________________________________________________________*/

#ifndef Included_CEdit_h	// [
#define Included_CEdit_h

#include "pgpClassesConfig.h"
#include "CWindow.h"

_PGP_BEGIN

// Class CEdit

class CEdit : public CWindow
{
private:
	enum {MaxLineLength = 256};

public:
	CEdit() { }
	CEdit(HWND hWnd) : CWindow(hWnd) { }
	~CEdit() { }

	PGPBoolean	GetLine(PGPUInt32 lineNum, CString& line) const;

	PGPUInt32	GetLineCount() const
	{
		return SendMessage(EM_GETLINECOUNT, 0, 0);
	}

	void		LimitText(PGPUInt32 limit) const
	{
		SendMessage(EM_LIMITTEXT, limit, 0);
	}
	
	void		SetSel(PGPInt32 start, PGPInt32 end) const
	{
		SendMessage(EM_SETSEL, start, end);
	}
};

_PGP_END

#endif	// ] Included_CEdit_h

⌨️ 快捷键说明

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