00001
00002
00003
00004
00005
00006
00007
00008 #ifndef LIBGUI_CBUTTON_H_
00009 #define LIBGUI_CBUTTON_H_
00010
00011 #include "CComponent.h"
00012
00016 class CButton : public CComponent
00017 {
00018 public:
00023 CButton(const CHAR* text);
00024 ~CButton();
00032 void SetText(const CHAR* text);
00033 virtual void Paint(CGraphics* g);
00034
00035
00036
00037
00038
00039 protected:
00040 virtual void ProcessComponentKeyEvent(SKeyEvent* e);
00041 protected:
00047 CString m_text;
00048
00049
00050 };
00051
00052 #endif