57 #if !defined(__NODLL__) && (defined (WIN32) || defined (__NUCLEUS_MNT__)) 58 #ifdef __MGUTILS_LIB__ 59 #define MGUTILS_EXPORT __declspec(dllexport) 61 #define MGUTILS_EXPORT __declspec(dllimport) 63 #elif defined(__NODLL__) && defined(WIN32) 64 #define MGUTILS_EXPORT __declspec(dllimport) 66 #define MGUTILS_EXPORT 69 #ifndef MGUTILS_MAJOR_VERSION 72 # undef PACKAGE_BUGREPORT 74 # undef PACKAGE_STRING 75 # undef PACKAGE_TARNAME 76 # undef PACKAGE_VERSION 77 # ifdef __MGUTILS_LIB__ 78 # include "../mgutilsconfig.h" 80 # include "mgutilsconfig.h" 84 #define MGUTILS_MSG_BASE MSG_USER + 0x40 85 #define MSG_FILESELOK (MGUTILS_MSG_BASE + 1) 86 #define MSG_FILESELCANCEL (MGUTILS_MSG_BASE + 2) 87 #define MSG_COLORSELOK (MGUTILS_MSG_BASE + 3) 88 #define MSG_COLORSELCANCEL (MGUTILS_MSG_BASE + 4) 89 #define MSG_FONTSELOK (MGUTILS_MSG_BASE + 5) 90 #define MSG_FONTSELCANCEL (MGUTILS_MSG_BASE + 6) 92 #ifdef _MGUTILS_MYWINS 121 MGUTILS_EXPORT
int myMessageBox (HWND hwnd, DWORD dwStyle,
const char* title,
122 const char* text, ...);
145 MGUTILS_EXPORT
int myWinMessage (HWND hwnd,
const char* title,
146 const char* button1,
const char* text, ...);
173 MGUTILS_EXPORT
int myWinChoice (HWND hwnd,
const char* title,
174 const char* button1,
const char* button2,
175 const char* text, ...);
203 MGUTILS_EXPORT
int myWinTernary (HWND hwnd,
const char* title,
204 const char* button1,
const char* button2,
const char* button3,
205 const char* text, ...);
221 MGUTILS_EXPORT
void errorWindow (HWND hwnd,
const char* str,
const char* title);
242 MGUTILS_EXPORT HWND
createStatusWin (HWND hParentWnd,
int width,
int height,
243 const char* title,
const char* text, ...);
259 #define createToolTipWin CreateToolTipWin 260 #define resetToolTipWin ResetToolTipWin 261 #define destroyToolTipWin DestroyToolTipWin 263 #ifdef _MGCTRL_PROGRESSBAR 287 const char* label,
int id,
int range);
319 typedef struct _myWinMenuItems
361 MGUTILS_EXPORT
int myWinMenu (HWND hParentWnd,
const char* title,
362 const char* label,
int width,
int listboxheight,
363 char ** items,
int * listItem,
myWINBUTTON* buttons);
382 typedef struct _myWinEntryItems
418 MGUTILS_EXPORT
int myWinEntries (HWND hParentWnd,
const char* title,
419 const char* label,
int width,
int editboxwidth,
440 const char* help_title,
const char* help_msg);
446 #ifdef _MGUTILS_VCONGUI 458 typedef enum {
false,
true} bool;
462 #define VCONGUI_VERSION "Version 0.8 (Feb. 2018)" 469 #define GetCharWidth GetSysCharWidth 470 #define GetCCharWidth GetSysCCharWidth 471 #define GetCharHeight GetSysCharHeight 517 void* NewVirtualConsole (PCHILDINFO pChildInfo);
550 WNDPROC proc,
void* private_data);
552 #ifdef _MGUTILS_DLGOPENFILE 555 #include <sys/types.h> 563 #define FILE_ERROR_OK 0 569 #define FILE_ERROR_PARAMERR -1 575 #define FILE_ERROR_PATHNOTEXIST -2 581 #define MAX_FILTER_LEN 255 587 #define MY_NAMEMAX 127 593 #define MY_PATHMAX 255 594 typedef struct _FILEDLGDATA
621 } FILEDLGDATA, *PFILEDLGDATA;
623 #define IDC_FOSD_BASE 520 624 #define IDC_FOSD_PATH_NOTE (IDC_FOSD_BASE + 1) 625 #define IDC_FOSD_PATH (IDC_FOSD_BASE + 2) 626 #define IDC_FOSD_UPPER (IDC_FOSD_BASE + 3) 627 #define IDC_FOSD_FILELIST (IDC_FOSD_BASE + 4) 628 #define IDC_FOSD_FILENAME_NOTE (IDC_FOSD_BASE + 5) 629 #define IDC_FOSD_FILENAME (IDC_FOSD_BASE + 6) 630 #define IDC_FOSD_FILETYPE_NOTE (IDC_FOSD_BASE + 7) 631 #define IDC_FOSD_FILETYPE (IDC_FOSD_BASE + 8) 632 #define IDC_FOSD_ISHIDE (IDC_FOSD_BASE + 9) 633 #define IDC_FOSD_OK (IDC_FOSD_BASE + 10) 634 #define IDC_FOSD_CANCEL (IDC_FOSD_BASE + 11) 653 WNDPROC proc, PFILEDLGDATA pfdd);
655 MGUTILS_EXPORT
extern DLGTEMPLATE DefFileDlg;
656 MGUTILS_EXPORT
extern DLGTEMPLATE DefSimpleFileDlg;
659 MGUTILS_EXPORT LRESULT
DefFileDialogProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
713 int w,
int h, PNEWFILEDLGDATA pnfdd);
717 #ifdef _MGUTILS_DLGCOLORSEL 741 void RGB2HSV (Uint8 r, Uint8 g, Uint8 b,
742 Uint16 *hout, Uint8 *sout, Uint8 *vout);
768 void HSV2RGB (Uint16 hin, Uint8 sin, Uint8 vin,
769 Uint8 *rout, Uint8 *gout, Uint8 *bout);
792 void YUV2RGB (
int y,
int u,
int v, Uint8 *r, Uint8 *g, Uint8 *b);
811 MG_EXPORT
void RGB2YUV (Uint8 r, Uint8 g, Uint8 b,
int *y,
int *u,
int *v);
813 typedef struct _COLORDLGDATA {
830 } COLORDLGDATA, *PCOLORDLGDATA;
832 #define IDC_CSD_BASE 600 833 #define IDC_CSD_BASIC_COLOR_NOTE (IDC_CSD_BASE + 1) 834 #define IDC_CSD_BASIC_COLOR (IDC_CSD_BASE + 2) 835 #define IDC_CSD_BASIC_COLOR_0 (IDC_CSD_BASE + 2) 836 #define IDC_CSD_BASIC_COLOR_1 (IDC_CSD_BASE + 3) 837 #define IDC_CSD_BASIC_COLOR_2 (IDC_CSD_BASE + 4) 838 #define IDC_CSD_BASIC_COLOR_3 (IDC_CSD_BASE + 5) 839 #define IDC_CSD_BASIC_COLOR_4 (IDC_CSD_BASE + 6) 840 #define IDC_CSD_BASIC_COLOR_5 (IDC_CSD_BASE + 7) 841 #define IDC_CSD_BASIC_COLOR_6 (IDC_CSD_BASE + 8) 842 #define IDC_CSD_BASIC_COLOR_7 (IDC_CSD_BASE + 9) 843 #define IDC_CSD_BASIC_COLOR_8 (IDC_CSD_BASE + 10) 844 #define IDC_CSD_BASIC_COLOR_9 (IDC_CSD_BASE + 11) 845 #define IDC_CSD_BASIC_COLOR_10 (IDC_CSD_BASE + 12) 846 #define IDC_CSD_BASIC_COLOR_11 (IDC_CSD_BASE + 13) 847 #define IDC_CSD_BASIC_COLOR_12 (IDC_CSD_BASE + 14) 848 #define IDC_CSD_BASIC_COLOR_13 (IDC_CSD_BASE + 15) 849 #define IDC_CSD_BASIC_COLOR_14 (IDC_CSD_BASE + 16) 850 #define IDC_CSD_BASIC_COLOR_15 (IDC_CSD_BASE + 17) 851 #define IDC_CSD_BASIC_COLOR_16 (IDC_CSD_BASE + 18) 852 #define IDC_CSD_BASIC_COLOR_17 (IDC_CSD_BASE + 19) 853 #define IDC_CSD_BASIC_COLOR_18 (IDC_CSD_BASE + 20) 854 #define IDC_CSD_BASIC_COLOR_19 (IDC_CSD_BASE + 21) 855 #define IDC_CSD_BASIC_COLOR_20 (IDC_CSD_BASE + 22) 856 #define IDC_CSD_BASIC_COLOR_21 (IDC_CSD_BASE + 23) 857 #define IDC_CSD_BASIC_COLOR_22 (IDC_CSD_BASE + 24) 858 #define IDC_CSD_BASIC_COLOR_23 (IDC_CSD_BASE + 25) 859 #define IDC_CSD_BASIC_COLOR_24 (IDC_CSD_BASE + 26) 860 #define IDC_CSD_BASIC_COLOR_25 (IDC_CSD_BASE + 27) 861 #define IDC_CSD_BASIC_COLOR_26 (IDC_CSD_BASE + 28) 862 #define IDC_CSD_BASIC_COLOR_27 (IDC_CSD_BASE + 29) 863 #define IDC_CSD_BASIC_COLOR_28 (IDC_CSD_BASE + 30) 864 #define IDC_CSD_BASIC_COLOR_29 (IDC_CSD_BASE + 31) 865 #define IDC_CSD_CUSTOM_COLOR_NOTE (IDC_CSD_BASE + 32) 866 #define IDC_CSD_CUSTOM_COLOR_0 (IDC_CSD_BASE + 33) 867 #define IDC_CSD_CUSTOM (IDC_CSD_BASE + 33) 868 #define IDC_CSD_CUSTOM_COLOR_1 (IDC_CSD_BASE + 34) 869 #define IDC_CSD_CUSTOM_COLOR_2 (IDC_CSD_BASE + 35) 870 #define IDC_CSD_CUSTOM_COLOR_3 (IDC_CSD_BASE + 36) 871 #define IDC_CSD_CUSTOM_COLOR_4 (IDC_CSD_BASE + 37) 872 #define IDC_CSD_CUSTOM_COLOR_5 (IDC_CSD_BASE + 38) 873 #define IDC_CSD_SPACE (IDC_CSD_BASE + 39) 874 #define IDC_CSD_YSPACE (IDC_CSD_BASE + 40) 875 #define IDC_CSD_COLOR (IDC_CSD_BASE + 41) 876 #define IDC_CSD_NOTE_H (IDC_CSD_BASE + 42) 877 #define IDC_CSD_NOTE_S (IDC_CSD_BASE + 43) 878 #define IDC_CSD_NOTE_V (IDC_CSD_BASE + 44) 879 #define IDC_CSD_NOTE_R (IDC_CSD_BASE + 45) 880 #define IDC_CSD_NOTE_G (IDC_CSD_BASE + 46) 881 #define IDC_CSD_NOTE_B (IDC_CSD_BASE + 47) 882 #define IDC_CSD_VALUE_H (IDC_CSD_BASE + 48) 883 #define IDC_CSD_VALUE_S (IDC_CSD_BASE + 49) 884 #define IDC_CSD_VALUE_V (IDC_CSD_BASE + 50) 885 #define IDC_CSD_VALUE_R (IDC_CSD_BASE + 51) 886 #define IDC_CSD_VALUE_G (IDC_CSD_BASE + 52) 887 #define IDC_CSD_VALUE_B (IDC_CSD_BASE + 53) 888 #define IDC_CSD_ADD (IDC_CSD_BASE + 54) 889 #define IDC_CSD_OK (IDC_CSD_BASE + 55) 890 #define IDC_CSD_CANCEL (IDC_CSD_BASE + 56) 909 WNDPROC proc, PCOLORDLGDATA pcdd);
911 MGUTILS_EXPORT
extern DLGTEMPLATE DefColorDlg;
912 MGUTILS_EXPORT
extern DLGTEMPLATE DefSimpleColorDlg;
915 MGUTILS_EXPORT LRESULT
DefColorDialogProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
937 #define SELCOLOR_OK IDOK 939 #define SELCOLOR_CANCEL IDCANCEL 962 int w,
int h, PCOLORDATA pClrData);
966 #ifdef _MGUTILS_DLGFONTSEL 968 typedef struct _FONTDLGDATA {
981 } FONTDLGDATA, *PFONTDLGDATA;
983 #define IDC_FSD_BASE 540 984 #define IDC_FSD_FONT_NOTE (IDC_FSD_BASE + 1) 985 #define IDC_FSD_FONT (IDC_FSD_BASE + 2) 986 #define IDC_FSD_STYLE_NOTE (IDC_FSD_BASE + 3) 987 #define IDC_FSD_STYLE (IDC_FSD_BASE + 4) 988 #define IDC_FSD_SIZE_NOTE (IDC_FSD_BASE + 5) 989 #define IDC_FSD_SIZE (IDC_FSD_BASE + 6) 990 #define IDC_FSD_EFFECTS_NOTE (IDC_FSD_BASE + 7) 991 #define IDC_FSD_FLIP_NOTE (IDC_FSD_BASE + 8) 992 #define IDC_FSD_FLIP (IDC_FSD_BASE + 9) 993 #define IDC_FSD_COLOR_NOTE (IDC_FSD_BASE + 10) 994 #define IDC_FSD_COLOR (IDC_FSD_BASE + 11) 995 #define IDC_FSD_ITALIC (IDC_FSD_BASE + 12) 996 #define IDC_FSD_STRIKEOUT (IDC_FSD_BASE + 13) 997 #define IDC_FSD_UNDERLINE (IDC_FSD_BASE + 14) 998 #define IDC_FSD_SAMPLE_NOTE (IDC_FSD_BASE + 15) 999 #define IDC_FSD_SAMPLE (IDC_FSD_BASE + 16) 1000 #define IDC_FSD_CHARSET_NOTE (IDC_FSD_BASE + 17) 1001 #define IDC_FSD_CHARSET (IDC_FSD_BASE + 18) 1002 #define IDC_FSD_OK (IDC_FSD_BASE + 19) 1003 #define IDC_FSD_CANCEL (IDC_FSD_BASE + 20) 1021 MGUTILS_EXPORT BOOL
FontSelectDialog (PDLGTEMPLATE dlg_template, HWND hwnd,
1022 WNDPROC proc, PFONTDLGDATA pfsd);
1024 MGUTILS_EXPORT
extern DLGTEMPLATE DefSimpleFontDlg;
1025 MGUTILS_EXPORT
extern DLGTEMPLATE DefFontDlg;
1028 MGUTILS_EXPORT LRESULT
DefFontDialogProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
1032 #ifdef _MGUTILS_DLGSHOWINFO 1034 typedef struct _INFODLGDATA {
1043 } INFODLGDATA, *PINFODLGDATA;
1045 #define IDC_IFD_SPIN 580 1062 MGUTILS_EXPORT BOOL
InfoShowDialog (PDLGTEMPLATE dlg_template, HWND hwnd,
1063 WNDPROC proc, PINFODLGDATA pidd);
1065 MGUTILS_EXPORT
extern DLGTEMPLATE DefInfoDlg;
1066 MGUTILS_EXPORT
extern DLGTEMPLATE DefSimpleInfoDlg;
1069 MGUTILS_EXPORT LRESULT
DefInfoDialogProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
1075 #ifdef _MGUTILS_SKIN 1084 #define SKIN_MSG_LBUTTONDOWN 1 1085 #define SKIN_MSG_LBUTTONUP 2 1086 #define SKIN_MSG_CLICK 3 1088 #define SKIN_MSG_MOUSEMOVE 5 1089 #define SKIN_MSG_MOUSEDRAG 6 1090 #define SKIN_MSG_SETFOCUS 7 1091 #define SKIN_MSG_KILLFOCUS 8 1099 #define SI_TYPE_NRMLABEL 0x10000000 1105 #define SI_TYPE_BMPLABEL 0x20000000 1111 #define SI_TYPE_CMDBUTTON 0x30000000 1117 #define SI_TYPE_CHKBUTTON 0x40000000 1123 #define SI_TYPE_NRMSLIDER 0x50000000 1125 #ifdef _MGHAVE_FIXED_MATH 1130 #define SI_TYPE_ROTSLIDER 0x60000000 1137 #define SI_TYPE_CONTROL 0x70000000 1143 #define SI_TYPE_MASK 0xF0000000 1151 #define SI_TEST_SHAPE_RECT 0x01000000 1157 #define SI_TEST_SHAPE_ELLIPSE 0x02000000 1163 #define SI_TEST_SHAPE_LOZENGE 0x03000000 1169 #define SI_TEST_SHAPE_LTRIANGLE 0x04000000 1175 #define SI_TEST_SHAPE_RTRIANGLE 0x05000000 1181 #define SI_TEST_SHAPE_UTRIANGLE 0x06000000 1187 #define SI_TEST_SHAPE_DTRIANGLE 0x07000000 1189 #define SI_TEST_SHAPE_MASK 0x0F000000 1197 #define SI_STATUS_OK 0x00000001 1203 #define SI_STATUS_VISIBLE 0x00000002 1209 #define SI_STATUS_DISABLED 0x00000004 1215 #define SI_STATUS_HILIGHTED 0x00000008 1217 #define SI_STATUS_MASK 0x0000000F 1225 #define SI_BTNSTATUS_CLICKED 0x00000010 1231 #define SI_BTNSTATUS_CHECKED SI_BTNSTATUS_CLICKED 1233 #define SI_STATUS_CLICKED SI_BTNSTATUS_CLICKED 1235 #define SI_BTNSTATUS_MASK 0x000000F0 1238 #define SI_CMDBUTTON_2STATE 0x00000100 1246 #define SI_NRMSLIDER_HORZ 0x00000100 1252 #define SI_NRMSLIDER_VERT 0x00000200 1258 #define SI_NRMSLIDER_STATIC 0x00000400 1260 #ifdef _MGHAVE_FIXED_MATH 1268 #define SI_ROTSLIDER_CW 0x00000100 1274 #define SI_ROTSLIDER_ANTICW 0x00000200 1280 #define SI_ROTSLIDER_STATIC 0x00000400 1284 #define SI_STYLE_MASK 0x0000FF00 1290 #define CTRL_SKIN "skin" 1468 WPARAM wparam, LPARAM lparam);
1517 #ifdef _MGHAVE_FIXED_MATH 1541 #define SIE_BUTTON_CLICKED 0x00000001 1547 #define SIE_SLIDER_CHANGED 0x00000002 1553 #define SIE_GAIN_FOCUS 0x00010000 1559 #define SIE_LOST_FOCUS 0x00020000 1579 int event,
void* data);
1584 #define MSG_CB_GOON 0 1590 #define MSG_CB_DEF_GOON 1 1596 #define MSG_CB_STOP 2 1624 WPARAM wparam, LPARAM lparam,
int* result);
1630 #define SKIN_STYLE_NONE 0x00000000 1636 #define SKIN_STYLE_TOOLTIP 0x00000001 1642 #define SKIN_STYLE_MODAL 0x00000002 1766 int lx,
int ty,
int rx,
int by, DWORD dwExStyle, BOOL modal);
1771 #define create_skin_main_window(skin, hosting, lx, ty, rx, by, modal) \ 1772 create_skin_main_window_ex (skin, hosting, lx, ty, rx, by, 0, modal) 1806 int id,
int x,
int y,
int w,
int h);
1883 skin->event_cb = event_cb;
1905 skin->msg_cb = msg_cb;
2045 int id, BOOL check);
2081 int id,
const char* label);
2189 int new_min,
int new_max);
MG_EXPORT void RGB2YUV(Uint8 r, Uint8 g, Uint8 b, int *y, int *u, int *v)
Converts r/g/b values of a color in RGB color space to y/u/v values of the color in YUV color space...
MGUTILS_EXPORT int ShowOpenDialog(HWND hWnd, int lx, int ty, int w, int h, PNEWFILEDLGDATA pnfdd)
Creates an Open File Dialog Box.
MGUTILS_EXPORT int myWinTernary(HWND hwnd, const char *title, const char *button1, const char *button2, const char *button3, const char *text,...)
Creates a message box within three buttons.
MGUTILS_EXPORT HWND createProgressWin(HWND hParentWnd, const char *title, const char *label, int id, int range)
Creates a main window within a progress bar.
struct si_nrmslider_s si_nrmslider_t
MGUTILS_EXPORT BOOL skin_set_thumb_pos(skin_head_t *skin, int id, int pos)
Sets the thumb position of a slider item.
struct si_rotslider_s si_rotslider_t
MGUTILS_EXPORT LRESULT DefFontDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
MGUTILS_EXPORT BOOL FontSelectDialog(PDLGTEMPLATE dlg_template, HWND hwnd, WNDPROC proc, PFONTDLGDATA pfsd)
MGUTILS_EXPORT void destroyProgressWin(HWND hwnd)
Destroies progress window.
MGUTILS_EXPORT int ColorSelDialog(HWND hWnd, int x, int y, int w, int h, PCOLORDATA pClrData)
Creates a Color Selection Dialog Box.
int(* skin_msg_cb_t)(HWND hwnd, int message, WPARAM wparam, LPARAM lparam, int *result)
int(* skin_event_cb_t)(HWND hwnd, skin_item_t *item, int event, void *data)
MGUTILS_EXPORT BOOL is_skin_main_window(HWND hwnd)
Determines whether a window is a skin main window or not.
MGUTILS_EXPORT int myWinChoice(HWND hwnd, const char *title, const char *button1, const char *button2, const char *text,...)
Creates a message box within two buttons.
MGUTILS_EXPORT LRESULT DefInfoDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
MGUTILS_EXPORT skin_item_t * skin_set_hilited_item(skin_head_t *skin, int id)
Sets the current highlighted skin item.
struct _COLORDATA COLORDATA
MGUTILS_EXPORT BOOL skin_init(skin_head_t *skin, skin_event_cb_t event_cb, skin_msg_cb_t msg_cb)
Initializes a skin.
MGUTILS_EXPORT int skin_scale_slider_pos(const sie_slider_t *org, int new_min, int new_max)
Scales the sliding position.
MGUTILS_EXPORT int myWinEntries(HWND hParentWnd, const char *title, const char *label, int width, int editboxwidth, BOOL fIME, myWINENTRY *items, myWINBUTTON *buttons)
Creates a entry main window for the user to enter something.
MGUTILS_EXPORT void destroy_skin_window(HWND hwnd)
Destroys a skin window.
MGUTILS_EXPORT LRESULT DefFileDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
MGUTILS_EXPORT BOOL skin_get_slider_info(skin_head_t *skin, int id, sie_slider_t *sie)
Retrives the sliding information of a slider item.
struct _myWinButton myWINBUTTON
struct sie_slider_s sie_slider_t
MGUTILS_EXPORT BOOL FileOpenSaveDialog(PDLGTEMPLATE dlg_template, HWND hwnd, WNDPROC proc, PFILEDLGDATA pfdd)
struct _NEWFILEDLGDATA NEWFILEDLGDATA
MGUTILS_EXPORT int myWinMessage(HWND hwnd, const char *title, const char *button1, const char *text,...)
Creates a message box within only one button.
static skin_event_cb_t skin_set_event_cb(skin_head_t *skin, skin_event_cb_t event_cb)
Sets new event callback of a skin.
MGUTILS_EXPORT DWORD skin_get_item_status(skin_head_t *skin, int id)
Retrives the common status of a skin item.
MGUTILS_EXPORT void skin_deinit(skin_head_t *skin)
Deinitializes an initialized skin.
MGUTILS_EXPORT HWND create_skin_main_window_ex(skin_head_t *skin, HWND hosting, int lx, int ty, int rx, int by, DWORD dwExStyle, BOOL modal)
Creates a main window for a skin.
void HSV2RGB(Uint16 hin, Uint8 sin, Uint8 vin, Uint8 *rout, Uint8 *gout, Uint8 *bout)
Converts h/s/v values of a color to r/g/b values of the color.
MGUTILS_EXPORT BOOL ShowCommonDialog(PDLGTEMPLATE dlg_template, HWND hwnd, WNDPROC proc, void *private_data)
MGUTILS_EXPORT int myMessageBox(HWND hwnd, DWORD dwStyle, const char *title, const char *text,...)
Creates a message box.
MGUTILS_EXPORT HWND createStatusWin(HWND hParentWnd, int width, int height, const char *title, const char *text,...)
Creates a status main window.
MGUTILS_EXPORT int myWinMenu(HWND hParentWnd, const char *title, const char *label, int width, int listboxheight, char **items, int *listItem, myWINBUTTON *buttons)
Creates a menu main window for the user to select an item.
MGUTILS_EXPORT void destroyStatusWin(HWND hwnd)
Destroies a status window.
struct skin_item_s skin_item_t
MGUTILS_EXPORT int myWinHelpMessage(HWND hwnd, int width, int height, const char *help_title, const char *help_msg)
Creates a help message window.
struct _CHILDINFO CHILDINFO
MGUTILS_EXPORT skin_item_t * skin_get_hilited_item(skin_head_t *skin)
Gets the current highlighted skin item.
MGUTILS_EXPORT DWORD skin_set_item_status(skin_head_t *skin, int id, DWORD status)
Set the common status of a skin item.
static skin_msg_cb_t skin_set_msg_cb(skin_head_t *skin, skin_msg_cb_t msg_cb)
Sets new message callback of a skin window.
NEWFILEDLGDATA * PNEWFILEDLGDATA
#define MAX_FILTER_LEN
The maximum length of filter string.
MGUTILS_EXPORT HWND create_skin_control(skin_head_t *skin, HWND parent, int id, int x, int y, int w, int h)
Creates a control for a skin.
#define MY_PATHMAX
The maximum length of path.
void RGB2HSV(Uint8 r, Uint8 g, Uint8 b, Uint16 *hout, Uint8 *sout, Uint8 *vout)
Converts r/g/b values of a color in RGB color space to h/s/v of the color in HSV color space...
MGUTILS_EXPORT HWND skin_get_control_hwnd(skin_head_t *skin, int id)
Gets the handle to a skin control item in the skin.
MGUTILS_EXPORT skin_head_t * get_window_skin(HWND hwnd)
Gets new skin.
MGUTILS_EXPORT LRESULT DefColorDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
MGUTILS_EXPORT BOOL skin_set_slider_info(skin_head_t *skin, int id, const sie_slider_t *sie)
Sets the sliding information of a slider item.
MGUTILS_EXPORT void errorWindow(HWND hwnd, const char *str, const char *title)
A MiniGUI edition of perror.
MGUTILS_EXPORT BOOL InfoShowDialog(PDLGTEMPLATE dlg_template, HWND hwnd, WNDPROC proc, PINFODLGDATA pidd)
MGUTILS_EXPORT BOOL skin_get_check_status(skin_head_t *skin, int id)
Gets the check status of a check button item.
MGUTILS_EXPORT skin_item_t * skin_get_item(skin_head_t *skin, int id)
Retrives a skin item through its identifier.
MGUTILS_EXPORT DWORD skin_show_item(skin_head_t *skin, int id, BOOL show)
Showes or hides a skin item.
void YUV2RGB(int y, int u, int v, Uint8 *r, Uint8 *g, Uint8 *b)
Converts y/u/v values of a color in YUV color space to to r/g/b values of the color in RGB color spac...
struct _myWinEntry myWINENTRY
MGUTILS_EXPORT skin_head_t * set_window_skin(HWND hwnd, skin_head_t *new_skin)
Sets new skin.
MGUTILS_EXPORT BOOL skin_set_item_label(skin_head_t *skin, int id, const char *label)
Sets the label string of a label item.
void * VCOnMiniGUI(void *data)
Creates a vcongui main window.
struct si_nrmlabel_s si_nrmlabel_t
MGUTILS_EXPORT DWORD skin_set_check_status(skin_head_t *skin, int id, BOOL check)
Sets the check status of a check button item.
MGUTILS_EXPORT DWORD skin_enable_item(skin_head_t *skin, int id, BOOL enable)
Enables or disables a skin item.
struct si_bmplabel_s si_bmplabel_t
MGUTILS_EXPORT const char * skin_get_item_label(skin_head_t *skin, int id)
Gets the label string of a label item.
MGUTILS_EXPORT BOOL ColorSelectDialog(PDLGTEMPLATE dlg_template, HWND hwnd, WNDPROC proc, PCOLORDLGDATA pcdd)
#define MY_NAMEMAX
The maximum length of name.
MGUTILS_EXPORT int skin_get_thumb_pos(skin_head_t *skin, int id)
Gets the thumb position of a slider item.