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

📄 point24container.h

📁 symbian平台下的24点游戏编程 很适合初学者的例子
💻 H
字号:
/*
========================================================================
 Name        : Point24Container.h
 Author      : luomao2000
 Copyright   : luomao2000@tom.com
Reserved
 Description : 
========================================================================
*/
#ifndef POINT24CONTAINER_H
#define POINT24CONTAINER_H

#include <coecntrl.h>		
#include <aknsbasicbackgroundcontrolcontext.h>
#include "point24.h"

class MEikCommandObserver;		
class CEikEdwin;
class CEikLabel;

/**
 * Container class for Point24Container
 * 
 * @class	CPoint24Container Point24Container.h
 */
class CPoint24Container : public CCoeControl
	{
public:
	// constructors and destructor
	CPoint24Container();
	static CPoint24Container* NewL( 
		const TRect& aRect, 
		const CCoeControl* aParent, 
		MEikCommandObserver* aCommandObserver );
	static CPoint24Container* NewLC( 
		const TRect& aRect, 
		const CCoeControl* aParent, 
		MEikCommandObserver* aCommandObserver );
	void ConstructL( 
		const TRect& aRect, 
		const CCoeControl* aParent, 
		MEikCommandObserver* aCommandObserver );
	virtual ~CPoint24Container();

public:
	// from base class CCoeControl
	TInt CountComponentControls() const;
	CCoeControl* ComponentControl( TInt aIndex ) const;
	TKeyResponse OfferKeyEventL( 
			const TKeyEvent& aKeyEvent, 
			TEventCode aType );
	void HandleResourceChange( TInt aType );
	
protected:
	// from base class CCoeControl
	void SizeChanged();

private:
	// from base class CCoeControl
	void Draw( const TRect& aRect ) const;

private:
	void InitializeControlsL();
	void LayoutControls();
	MEikCommandObserver* iCommandObserver;
public: 
	
public: 
	
private: 
	CEikEdwin* iEditResult;
	CEikLabel* iLabelNumber;
	CEikEdwin* iEditNumber;
	CPoint24*  iPoint24;
    CAknsBasicBackgroundControlContext* iSkinContext;	
	
protected: 
	
	
protected: 
	
public: 
	enum TControls
		{
		EEdit1,
		ELabelNumber,
		EEditNumber,
		
		// add any user-defined entries here...
		
		ELastControl
		};
	};
				
#endif // POINT24CONTAINER_H

⌨️ 快捷键说明

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