mirror of
https://gitee.com/idea4good/GuiLite.git
synced 2026-01-02 12:27:22 +08:00
!19 Refactor wnd, add HelloWidgets
This commit is contained in:
28
widgets_include/dialog.h
Normal file
28
widgets_include/dialog.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef DIALOG_H
|
||||
#define DIALOG_H
|
||||
|
||||
class c_surface;
|
||||
class c_dialog;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
c_dialog* dialog;
|
||||
c_surface* surface;
|
||||
} DIALOG_ARRAY;
|
||||
|
||||
class c_dialog : public c_wnd
|
||||
{
|
||||
public:
|
||||
static int open_dialog(c_dialog* p_dlg);
|
||||
static int close_dialog(c_surface* surface);
|
||||
static c_dialog* get_the_dialog(c_surface* surface);
|
||||
protected:
|
||||
virtual const char* get_class_name(void) const {return "c_dialog";}
|
||||
virtual void pre_create_wnd();
|
||||
virtual void on_paint();
|
||||
static DIALOG_ARRAY ms_the_dialogs[SURFACE_CNT_MAX];
|
||||
private:
|
||||
int set_me_the_dialog();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user