#ifndef _BUTTON_H_ #define _BUTTON_H_ #define GLT_BN_CLICKED 0x1111 #define ON_GLT_BN_CLICKED(ctrlId, func) \ {MSG_TYPE_WND, GLT_BN_CLICKED, (c_cmd_target*)ctrlId, MSG_CALLBACK_VWV, (MsgFuncVV)(static_cast(&func))}, class c_button : public c_wnd { public: virtual const char* get_class_name() const {return "c_button";} virtual c_wnd* clone(){return new c_button();} protected: virtual void on_paint(); virtual void on_focus(); virtual void on_kill_focus(); virtual void on_touch_down(int x, int y); virtual void on_touch_up(int x, int y); virtual void pre_create_wnd(); private: }; #endif