formitemcheck.h

来自「基于WINDOWS mobile 的用于创建一个窗体和自定义试图的工程」· C头文件 代码 · 共 46 行

H
46
字号
// FormItemCheck.h: interface for the CFormItemCheck class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FORMITEMCHECK_H__54A26638_35F5_4BC5_B820_073D4FC7D731__INCLUDED_)
#define AFX_FORMITEMCHECK_H__54A26638_35F5_4BC5_B820_073D4FC7D731__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "FormItem.h"


//---------------------------------------------------------------------------
//
//	CFormItem
//
//---------------------------------------------------------------------------


class CFormItemCheck : public CFormItem  
{
public:
	CFormItemCheck();
	virtual ~CFormItemCheck();

	void Set(int nVal)		{ m_nVal = nVal; }
	void Set(short nVal)	{ m_nVal = nVal; }
	void Set(long nVal)		{ m_nVal = nVal; }
	void Get(int &nVal)		{ nVal = m_nVal; }
	void Get(short &nVal)	{ nVal = m_nVal; }
	void Get(long &nVal)	{ nVal = m_nVal; }

	virtual LRESULT CustomDraw(CFormListCtrl* pForm, NMLVCUSTOMDRAW *pLVCD);

	virtual BOOL ShowEditor	(CFormListCtrl* pForm, BOOL bShow, int iItem, int iSubItem);

protected:
	int		m_nVal;

	void DrawCheck(HDC hDC, int x, int y);
};

#endif // !defined(AFX_FORMITEMCHECK_H__54A26638_35F5_4BC5_B820_073D4FC7D731__INCLUDED_)

⌨️ 快捷键说明

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