mirror of
https://gitee.com/idea4good/GuiLite.git
synced 2025-01-15 17:02:52 +08:00
29 lines
636 B
C++
29 lines
636 B
C++
#ifndef GUILITE_WIDGETS_INCLUDE_DIALOG_H
|
|
#define GUILITE_WIDGETS_INCLUDE_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, bool modal_mode = true);
|
|
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
|