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

📄 biaocommcontainer.h

📁 一个可以加载图片作为下拉菜单的symbian手机示例
💻 H
字号:
/*
 * BiaoCommContainer.h
 *
 *  Created on: 2009-4-24
 *      Author: IBM
 */

#ifndef BIAOCOMMCONTAINER_H_
#define BIAOCOMMCONTAINER_H_


// 1.
#include <eikon.hrh>

#include "Biaofeng.hrh"
// 2.
#include <eikon.rsg>

	//#include "Biaofeng.rsg"

// 3.
#include <eikenv.h>
#include <eikappui.h>
#include <eikproc.h>
#include <eikdialg.h>
#include <eikmenub.h>
#include <eikapp.h>
#include <eikdoc.h>
#include <coeutils.h>
#include <barsread.h>
#include <eikfctry.h>

#include "BiaofengBaseControl.h"

  // The unique identifier for this application.
  // NOTE that the number has been arbitrarily chosen for the purpose of
  // of the example.
  
 // const TUid KUidExampleApp={0x01000d00};

//////////////////////////////////////////////////////////////////////////////
//
// -----> CSmileyContainer(definition)
//
//////////////////////////////////////////////////////////////////////////////

class CSmileyContainer : public CCoeControl, 
                         public MCoeControlObserver
    {
public:
      // Construction
    CSmileyContainer();
    void ConstructL(const TRect& aRect);
      // Destruction
    ~CSmileyContainer();
    void ConstructFromResourceL(TResourceReader& aReader);
    void PrepareForFocusLossL();
    TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
protected:
    void FocusChanged(TDrawNow aDrawNow);
private:
      // Virtual, defined by CCoeControl; replaces the default implementation
      // provided by CCoeControl.
    void         Draw(const TRect& aRect) const;
    
      // Virtual, defined by CCoeControl; replaces the default implementation
      // provided by CCoeControl. 
    TInt         CountComponentControls() const;

      // Virtual, defined by CCoeControl; replaces the default implementation
      // provided by CCoeControl.
    CCoeControl* ComponentControl(TInt aIndex) const;

      // Virtual, defined by CCoeControl; empty implementation provided by
      // CCoeControl; full implementation provided by this class
    void         SizeChanged();
    
      // Defined as pure virtual by the mixin class MCoeControlObserver 
      // inherited by CCoeControl. An empty implementation provided by 
      // this class (its containees do not report events).
    void         HandleControlEventL(CCoeControl* aControl,
                                     TCoeEvent aEventType);
private:
      // Member functions defined and used by this class
    void        SwapFocus(CCoeControl* aControl);
private:
      // Data members defined and used by this class.
    CSmiley*    iSmiley1;
    CSmiley*    iSmiley2;
    };

#endif /* BIAOCOMMCONTAINER_H_ */

⌨️ 快捷键说明

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