basenameappcontainer.h

来自「symbian学习案例」· C头文件 代码 · 共 46 行

H
46
字号
/*
============================================================================
 Name		: $(baseName)AppContainer.h
 Author	  : $(author)
 Copyright   : $(copyright)
 Description : Declares container class for application.
============================================================================
*/

#ifndef __$(baseNameUpper)APPCONTAINER_h__
#define __$(baseNameUpper)APPCONTAINER_h__

// INCLUDES
#include <coecntrl.h>

// CLASS DECLARATION
class C$(baseName)AppContainer : public CCoeControl, MCoeControlObserver
{
	public: // Constructors and destructor		
		~C$(baseName)AppContainer();		
		static C$(baseName)AppContainer* NewL( const TRect& aRect );
		static C$(baseName)AppContainer* NewLC( const TRect& aRect );
		
	public: // New functions

    public: // Functions from base classes
		TKeyResponse  OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
		
	private: // Functions from base classes
		void SizeChanged();
		TInt CountComponentControls() const;
		CCoeControl* ComponentControl(TInt aIndex) const;
		void Draw(const TRect& aRect) const;
		void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
		
		C$(baseName)AppContainer();
		void ConstructL(const TRect& aRect);
		
	private: //data

};

#endif // __$(baseNameUpper)APPVIEW_h__

// End of File

⌨️ 快捷键说明

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