ccursor.h

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

H
58
字号
/*____________________________________________________________________________
		Copyright (C) 2002 PGP Corporation
        All rights reserved.

        $Id: CCursor.h,v 1.3 2002/08/06 20:10:45 dallen Exp $
____________________________________________________________________________*/

#ifndef Included_CCursor_h	// [
#define Included_CCursor_h

#include "pgpClassesConfig.h"

_PGP_BEGIN

// Class CCursor

class CCursor
{
	NOT_COPYABLE(CCursor)

public:
	CCursor(HCURSOR cursor = NULL);
	CCursor(HINSTANCE instance, LPCTSTR cursorName, 
		PGPBoolean shared = FALSE);
	virtual ~CCursor();

	operator HCURSOR() const {return mCursor;}
	HCURSOR	Get() const {return mCursor;}

	PGPBoolean	IsAttached();
	PGPBoolean	WeCreated() const {return mWeCreated;}

	HCURSOR	OldCursor() const {return mOldCursor;}

	void	Load(HINSTANCE instance, LPCTSTR cursorName, 
		PGPBoolean shared = FALSE);
	void	LoadCurrentCursor();

	void	SetCursor();
	void	RestoreCursor();

	static PGPBoolean	GetCursorPos(PPOINT pPoint);
	static PGPBoolean	SetCursorPos(PGPInt32 x, PGPInt32 y);
	static PGPInt32		ShowCursor(PGPBoolean show);

	void	Clear();

private:
	PGPBoolean	mWeCreated;

	HCURSOR	mCursor;
	HCURSOR	mOldCursor;
};

_PGP_END

#endif	// ] Included_CCursor_h

⌨️ 快捷键说明

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