cbutton.h

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

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

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

#ifndef Included_CButton_h	// [
#define Included_CButton_h

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

_PGP_BEGIN

// Class CButton

class CButton : public CWindow
{
public:
	CButton() { }
	CButton(HWND hWnd) : CWindow(hWnd) { }
	~CButton() { }

	void		Click() const
	{
		SendMessage(BM_CLICK, 0, 0);
	}

	PGPUInt32	GetCheck() const
	{
		return SendMessage(BM_GETCHECK, 0, 0);
	}

	PGPUInt32	GetState() const
	{
		return SendMessage(BM_GETSTATE, 0, 0);
	}

	void		SetCheck(PGPUInt32 state) const
	{
		SendMessage(BM_SETCHECK, state, 0);
	}

	void		SetState(PGPUInt32 state) const
	{
		SendMessage(BM_SETSTATE, state, 0);
	}
};

_PGP_END

#endif	// ] Included_CButton_h

⌨️ 快捷键说明

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