00001 00002 00003 00004 00005 #ifndef _GBITMAP_H_ 00006 #define _GBITMAP_H_ 00007 00009 class LgiClass GBitmap : 00010 public GControl, 00011 public ResObject 00012 { 00013 GSurface *pDC; 00014 class GThread *pThread; 00015 00016 public: 00018 GBitmap(int id, int x, int y, char *FileName, bool Async = false); 00019 ~GBitmap(); 00020 00022 virtual void SetDC(GSurface *pDC = 0); 00024 virtual GSurface *GetSurface(); 00025 00026 int OnEvent(GMessage *Msg); 00027 void OnPaint(GSurface *pDC); 00028 void OnMouseClick(GMouse &m); 00029 }; 00030 00031 #endif