GuiLite/workspace/widgets_include/button.h

22 lines
556 B
C
Raw Normal View History

2019-08-19 16:03:27 +08:00
#ifndef GUILITE_WIDGETS_INCLUDE_BUTTON_H
#define GUILITE_WIDGETS_INCLUDE_BUTTON_H
2017-12-06 21:43:47 +08:00
2018-12-02 22:39:43 +08:00
#define GL_BN_CLICKED 0x1111
2019-12-17 10:45:15 +08:00
#define ON_GL_BN_CLICKED(func) \
{MSG_TYPE_WND, GL_BN_CLICKED, 0, msgCallback(&func)},
2017-12-06 21:43:47 +08:00
2018-10-04 14:30:29 +08:00
typedef struct struct_bitmap_info BITMAP_INFO;
2017-12-06 21:43:47 +08:00
class c_button : public c_wnd
{
protected:
virtual void on_paint();
virtual void on_focus();
virtual void on_kill_focus();
virtual void pre_create_wnd();
2018-10-04 14:30:29 +08:00
virtual void on_touch(int x, int y, TOUCH_ACTION action);
virtual void on_key(KEY_TYPE key);
2017-12-06 21:43:47 +08:00
};
#endif