cedit.h

来自「可以实现对邮件的加密解密以及签名」· C头文件 代码 · 共 49 行

H
49
字号
/*____________________________________________________________________________
		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 + =
减小字号Ctrl + -
显示快捷键?