simpleex.h

来自「symbian下的几个小例子。。很值得学习」· C头文件 代码 · 共 76 行

H
76
字号
// SimpleEx.h
//
// Copyright (c) Symbian Software Ltd 1999 - 2007.  All rights reserved.
//

#ifndef __SIMP_H
#define __SIMP_H

/*==========================================
   S60 SimpleEx Header File
==========================================*/

#include <eikenv.h>

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

#include <akndoc.h>
#include <aknapp.h>
#include <aknappui.h>
#include "SimpleExUid.h"

const TUid KUidSimpleExApp = {SIMPLEEXUID};

// The Application Class 

class CSimpleExApplication : public CAknApplication
{
private: 

    CApaDocument* CreateDocumentL();
    TUid AppDllUid() const;

};

// 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);
private:
    void Draw(const TRect&) const;

};

// The UI Class

class CSimpleExAppUi : public CAknAppUi
    {
    public:
        void ConstructL();
        ~CSimpleExAppUi();

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


// The Application Document Class
 
class CSimpleExDocument : public CAknDocument
    {
    public:
        CSimpleExDocument(CEikApplication& aApp): CAknDocument(aApp) { }
    
    private: 
        CEikAppUi* CreateAppUiL();
    };

#endif

⌨️ 快捷键说明

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