main_screen.h

来自「symbian快捷方式添加的实例.3版的例子,添加快捷方式.」· C头文件 代码 · 共 49 行

H
49
字号

#ifndef __MYMSAINSCREEN_H__
#define __MYMSAINSCREEN_H__

#include <coecntrl.h>       // CCoeControl
#include <AknsBasicBackgroundControlContext.h> 
#include <aknsdrawutils.h>
#include <aknscontrolcontext.h>
#include <AknsSkinInstance.h>
#include <aknsutils.h>
#include <CScShortcutEngineWrapper.h>

class CFbsBitmap;
class CAknGrid;
class CGulIcon;

//-------------------------------------------------------------------
//
//-------------------------------------------------------------------
class CMyMainScreen : public CCoeControl
    {
public:
	static CMyMainScreen* NewL(const TRect& aRect,RPointerArray<CScWrapperShortcut>& aScArray);
	~CMyMainScreen();
public:
	TInt SelectedIndex();
protected:
	TTypeUid::Ptr MopSupplyObject(TTypeUid aId); // needed for skins stuff
private:
	virtual void SizeChanged();
	CMyMainScreen(RPointerArray<CScWrapperShortcut>& aScArray);
	void ConstructL(const TRect& aRect);
	void Draw(const TRect& aRect) const;
	void MakeGridBoxL();
	TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
	CCoeControl* ComponentControl( TInt aIndex) const;
	TInt CountComponentControls() const;
	CDesCArray* GetArrayL(CArrayPtr<CGulIcon>* aIcon,const TSize& aIconsize);
private:
	CAknsBasicBackgroundControlContext*	iBgContext;
    RPointerArray<CScWrapperShortcut>& 	iScArray;
    CAknGrid* 							iMyGrid;
    TRect 								iGridRect;
};


  
#endif // __MYMSAINSCREEN_H__

⌨️ 快捷键说明

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