#ifndef _STATBAR_STATUSBARLOGO_HPP_ #define _STATBAR_STATUSBARLOGO_HPP_ #ifndef _STATBAR_STATBAR_HPP_ #include #endif #ifndef _COMMON_PUREBITMAP_HPP_ #include #endif class StatusBarLogo : public StatusBar { public: StatusBarLogo(GUIWindow &guiWindow,const String &nameBitmap,BOOL stretchBlt=TRUE); virtual ~StatusBarLogo(); void setBitmap(GUIWindow &guiWindow,const String &nameBitmap); void centerxy(BOOL centerx,BOOL centery); void stretchBlt(BOOL stretchBlt); protected: virtual void postPaint(PureDevice &screenDevice,const Rect &paintRect); private: PureBitmap mPureBitmap; BOOL mStretchBlt; BOOL mCentery; BOOL mCenterx; }; inline StatusBarLogo::StatusBarLogo(GUIWindow &guiWindow,const String &nameBitmap,BOOL stretchBlt) : StatusBar(guiWindow), mPureBitmap(nameBitmap,guiWindow.processInstance()), mStretchBlt(stretchBlt), mCenterx(FALSE), mCentery(FALSE) { } inline StatusBarLogo::~StatusBarLogo() { } inline void StatusBarLogo::centerxy(BOOL centerx,BOOL centery) { mCenterx=centerx; mCentery=centery; } inline void StatusBarLogo::stretchBlt(BOOL stretchBlt) { mStretchBlt=stretchBlt; } inline void StatusBarLogo::setBitmap(GUIWindow &guiWindow,const String &nameBitmap) { mPureBitmap=PureBitmap(nameBitmap,guiWindow.processInstance()); PureDevice screenDevice(guiWindow); postPaint(screenDevice,postPaintRect()); } #endif