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

📄 simpleex.h

📁 Developing.Software.for.Symbian.OS 书籍配套源码
💻 H
字号:

#ifndef __SIMP_H
#define __SIMP_H

/*==========================================
   Series 60 SimpleEx Header File
==========================================*/

#include <eikenv.h>

#include <eikon.hrh>
#include "simpleEx.hrh"

#include <akndoc.h>
#include <aknapp.h>
#include <aknappui.h>
#include <aknform.h>
#include <eikdialg.h>
#include <simpleEx.rsg>
_LIT(KSimpleExText,"Simple Example");


// The Application Class 

class CSimpleExApplication : public CAknApplication
    {

private: 
	CApaDocument* CreateDocumentL();
	TUid AppDllUid() const;
    };


// The UI Class

class CSimpleExAppView;

class CSimpleExAppUi : public CAknAppUi
    {

public:
    void ConstructL();
	~CSimpleExAppUi();

private:
            
	void HandleCommandL(TInt aCommand);
	
private:
	CSimpleExAppView* iAppView;
 
    };

// The Application View Class 

class CSimpleExAppView : public CCoeControl
    {

public:
	static CSimpleExAppView* NewL(const TRect& aRect);
    static CSimpleExAppView* CSimpleExAppView::NewLC(const TRect& aRect);
    void ConstructL(const TRect& aRect);
    void UpdateScreenText(const TDesC16& aText);
    TBuf<100> iDisplayText;
    TRgb iTextColor;

private:
	void Draw(const TRect&) const;
    };

// The Application Document Class
 
class CSimpleExDocument : public CAknDocument
	{

public:
	CSimpleExDocument(CEikApplication& aApp): CAknDocument(aApp) { }

private: 

	CEikAppUi* CreateAppUiL();
    };


// The Form Dialog Class

class CSimpleExForm : public CAknForm
    {

public:
	static CSimpleExForm* NewL(TDes& aText,TRgb& aColor);

private:
	CSimpleExForm(TDes& aText,TRgb& aColor);
        // Inherited from CAknForm
	void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
	TBool SaveFormDataL();
	void  PreLayoutDynInitL();

private:
    TDes& iText;
    TRgb& iColor;
    };

#endif

⌨️ 快捷键说明

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