nbutton.h
来自「EVC环境下用SDK开发WINCE的应用程序」· C头文件 代码 · 共 41 行
H
41 行
// NButton.h: interface for the CNButton class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_NBUTTON_H__1043F8F8_A0CB_4BFE_987B_ACF2F04B30C1__INCLUDED_)
#define AFX_NBUTTON_H__1043F8F8_A0CB_4BFE_987B_ACF2F04B30C1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "NWnd.h"
class CNButton : public CNCtrl
{
public:
CNButton();
virtual ~CNButton();
BOOL Create(LPCTSTR lpszCaption, DWORD dwStyle,
const RECT& rect, CNWnd* pParentWnd, UINT nID);
// void SetBkgndColor(COLORREF cr) { m_crBkgndColor = cr;}
// void SetTransparent(BOOL bTrans) { m_bTransparent = bTrans; }
protected:
// Overridables (for owner draw only)
virtual void OnDraw(HDC hdc);
virtual void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
// virtual BOOL OnEraseBkgnd(HDC hdc);
virtual void PreSubclassWindow();
virtual void OnLButtonDblClk(UINT nFlags, POINT point);
// if set this flag, don't erase bkgnd, if not, we erase bkgnd
// with bkground color.
// BOOL m_bTransparent;
// COLORREF m_crBkgndColor;
};
#endif // !defined(AFX_NBUTTON_H__1043F8F8_A0CB_4BFE_987B_ACF2F04B30C1__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?