popupwindow.h

来自「本例是SYMBIAN C++一个创建短信的例子」· C头文件 代码 · 共 77 行

H
77
字号
/*
* ============================================================================
*  Name     : CPopupWindow from PicaInfoPopupWindow.h
*  Part of  : PicaClient
*  Created  : 2004-11-12 by zhao guo qing
*  Description:
*     Declares main application class.
*  Version  :
*  Copyright: mmim
* ============================================================================
*/

#ifndef __POP_WINDOW_H__
#define __POP_WINDOW_H__

//  INCLUDES
#include <aknview.h>
#include "timeouttimer.h"
// CLASS DECLARATION
/**
*  Popup window class
*/    
class CPopupWindow : public CCoeControl,
                     public	MTimeOutNotifier
{ 
public:  // Constructors and destructor
    /**
    * C++ default constructor.
    */
    CPopupWindow();

    /**
    * EPOC default constructor.
    */
    void ConstructL(const TRect& aRect);

    /**
    * Destructor.
    */
    virtual ~CPopupWindow();

public: // Functions from base classes
    /**
    * From CCoeControl, SetColoe
    * @param aColor, aColor is the color set to.
    */
    void SetColor(TRgb aColor);
	void SetShowMsg(const TDesC & msg);

private: // Functions from base classes
	
	void TimerExpired();

    /**
    * From CCoeControl,Draw.
    * @param Specified area for drawing
    */
    void Draw(const TRect& aRect) const;
   
private:  // Data
    RWindowGroup iMyWindowGroup;

	CTimeOutTimer*    iTimer;
	
	CFbsBitmap*         iIcon;
	CFbsBitmap*         iIconMask;

    TRgb iColor;
	TBuf<128> iDrawMsg;
	TInt iInernalLeft;
	TInt iMsgLen;
};

#endif // __POP_WINDOW_H__

// End of File

⌨️ 快捷键说明

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