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

📄 simpleex_ui.cpp

📁 symbian下的几个小例子。。很值得学习
💻 CPP
字号:
// simpleEx_ui.cpp
//
// Copyright (c) Symbian Software Ltd 1999 - 2007.  All rights reserved.
//

#include "SimpleEx.h"
#include <e32cons.h> 


void CSimpleExAppUi::ConstructL()

 {
    BaseConstructL(EAknEnableSkin);
	
    iAppView = CSimpleExAppView::NewL(ClientRect());
	iCoeEnv->ReadResource(iAppView->iDisplayText,R_EXAMPLE_TEXT);  
	iAppView->iTextColor = KRgbBlack;

 }


CSimpleExAppUi::~CSimpleExAppUi()
 {
    delete iAppView;
 }

void CSimpleExAppUi::HandleCommandL(TInt aCommand)
    {
    switch(aCommand)
        {
        case EAknSoftkeyExit:
		case EEikCmdExit:

            Exit();
            break;

        case ESimpleExCommand:
            {
				
			HBufC* message = iCoeEnv->AllocReadResourceAsDes16L(R_START_SELECTED);
            iEikonEnv->AlertWin(*message);
			delete message;
   
            break;
            }
	   case ESimpleExDialog:
            CSimpleExForm* form = CSimpleExForm::NewL(iAppView->iDisplayText,iAppView->iTextColor);
            form->ExecuteLD(R_SIMPLEEX_DIALOG);
            break;
      default:
		; // Do nothing

      }
    }

void CSimpleExAppUi::HandleResourceChangeL( TInt aType )
    {
    CAknAppUi::HandleResourceChangeL( aType );
    if ( aType==KEikDynamicLayoutVariantSwitch )
        {
        iAppView->SetRect( ClientRect() );
        }
    }

⌨️ 快捷键说明

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