point24container.h

来自「symbian平台下的24点游戏编程 很适合初学者的例子」· C头文件 代码 · 共 96 行

H
96
字号
/*
========================================================================
 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 + =
减小字号Ctrl + -
显示快捷键?