📄 demobmpappview.h
字号:
/* Copyright (c) 2005, Nokia. All rights reserved */
#ifndef __DEMOBMP_APPVIEW_H__
#define __DEMOBMP_APPVIEW_H__
//#include <MdaImageConverter.h>
#include <coecntrl.h>
#include <aknview.h>
#include <MdaImageConverter.h>
/*!
@class CDemoBMPAppView
@discussion An instance of this class is the Application View object
for the DemoBMP example application
*/
class CDemoBMPAppView : public CCoeControl,public MMdaImageUtilObserver
{
public:
MMdaImageUtilObserver &iobserver;
/*!
@function NewL
@discussion Create a CDemoBMPAppView object, which will draw itself to aRect
@param aRect The rectangle this view will be drawn to
@result A pointer to the created instance of CDemoBMPAppView
*/
static CDemoBMPAppView* NewL(const TRect& aRect);
/*!
@function NewLC
@discussion Create a CDemoBMPAppView object, which will draw itself to aRect
@param aRect The rectangle this view will be drawn to
@result A pointer to the created instance of CDemoBMPAppView
*/
static CDemoBMPAppView* NewLC(const TRect& aRect);
/*!
@function ~CDemoBMPAppView
@discussion Destroy the object
*/
~CDemoBMPAppView();
public: // from CCoeControl
/*!
@function Draw
@discussion Draw this CDemoBMPAppView to the screen
@param aRect The rectangle of this view that needs updating
*/
void Draw(const TRect& aRect) const;
virtual void MiuoOpenComplete(TInt aError);
virtual void MiuoCreateComplete(TInt aError);
virtual void MiuoConvertComplete(TInt aError);
private:
/*!
@function ConstructL
@discussion Perform the second phase construction of a CDemoBMPAppView object
@param aRect The rectangle this view will be drawn to
*/
void ConstructL(const TRect& aRect);
/*!
@function CDemoBMPAppView
@discussion Perform the first phase of two phase construction
*/
CDemoBMPAppView();
private:
CFbsBitmap* image;
CMdaBitmapScaler* iScaler;
};
#endif // __DEMOBMP_APPVIEW_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -