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

📄 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 <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);
	
public:

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();
};

class CSimpleExDialog : public CEikDialog

{
  public:
	CSimpleExDialog(TDes& aText,TRgb& aColor); 

  private:
	           // Inherited from CEikDialog
	void  PreLayoutDynInitL();
	TBool OkToExitL(TInt aKeycode); 

    TDes& iText;
    TRgb& iColor;
};


#endif

⌨️ 快捷键说明

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