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

📄 btnctrl.h

📁 symbian下自制按钮实现
💻 H
字号:
// BtnCtrl.h: interface for the CBtnCtrl class.
//
//////////////////////////////////////////////////////////////////////
#ifndef __BTNCHRL_HH__
#define __BTNCHRL_HH__

#include <coecntrl.h>

class CBtnCtrl : public CCoeControl
{
public:
    static CBtnCtrl * NewL(const TRect& aRect , const CCoeControl* aParent ,const TDesC & aCaption ) ;
	static CBtnCtrl * NewLC(const TRect& aRect , const CCoeControl* aParent,const TDesC & aCaption) ;

	virtual ~CBtnCtrl( ){  };
public: // from CCoeControl
	TSize MinimumSize( );
	void Draw(const TRect& aRect) const ;
	void SetFocus(TBool aFocus,TDrawNow aDrawNow=ENoDrawNow) ;

protected: //from CCoeControl

	
   
private: //私有数据
    TBuf<20> iCaption ;  	   

private:  //私有成员 
	CBtnCtrl(   const TDesC & aCaption ):iCaption(aCaption){    };
	void  ConstructL(const TRect& aRect , const CCoeControl* aParent ) ;

};

#endif // !defined(AFX_BTNCTRL_H__7922E381_31D8_4F61_9FC8_AB7F9D8DCB5C__INCLUDED_)

⌨️ 快捷键说明

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