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

📄 nstatic.h

📁 EVC环境下用SDK开发WINCE的应用程序
💻 H
字号:
// NStatic.h: interface for the CNStatic class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_NSTATIC_H__12F45A1E_D0E6_4446_BDFE_D7F53BD3EC4B__INCLUDED_)
#define AFX_NSTATIC_H__12F45A1E_D0E6_4446_BDFE_D7F53BD3EC4B__INCLUDED_

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

#include "NWnd.h"

class CNStatic : public CNCtrl  
{
// Constructors
public:
	CNStatic();

	BOOL Create(LPCTSTR lpszText, DWORD dwStyle,
				const RECT& rect, CNWnd* pParentWnd, UINT nID = 0xffff);


// Operations
	HICON SetIcon(HICON hIcon);
	HICON GetIcon() const;

	HBITMAP SetBitmap(HBITMAP hBitmap);
	HBITMAP GetBitmap() const;

	void SetTextColor(COLORREF cr) { m_crTextColor = cr;}
//	void SetBkgndColor(COLORREF cr) { m_crBkgndColor = cr;}
	void SetTextStyle(DWORD dwStyle) { m_dwTextStyle = dwStyle; }
//	void SetTransparent(BOOL bTrans) { m_bTransparent = bTrans; }

//	virtual BOOL OnEraseBkgnd(HDC hdc);
	virtual void PreSubclassWindow(void);
	virtual void OnDraw(HDC hdc);
	virtual void OnDrawItem(int /*nIDCtl*/, LPDRAWITEMSTRUCT lpDrawItemStruct);
protected:

// Attributes
	COLORREF	m_crTextColor;
//	COLORREF	m_crBkgndColor;		// brush it when it's not transparent.
	DWORD		m_dwTextStyle;	// SS_LEFT, SS_RIGHT, SS_CENTER
	HBITMAP		m_hBitmap;
//	BOOL		m_bTransparent;	// don't brush bkgnd when it's true.
// Implementation
public:
	virtual ~CNStatic();

};

#endif // !defined(AFX_NSTATIC_H__12F45A1E_D0E6_4446_BDFE_D7F53BD3EC4B__INCLUDED_)

⌨️ 快捷键说明

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