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

📄 main_screen.h

📁 symbian快捷方式添加的实例.3版的例子,添加快捷方式.
💻 H
字号:

#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -