00001
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef _MGUI_MYWINDOWS_H
00031 #define _MGUI_MYWINDOWS_H
00032
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036
00075 MGEXT_EXPORT int myMessageBox (HWND hwnd, DWORD dwStyle, char* title,
00076 char* text, ...);
00077
00099 MGEXT_EXPORT int myWinMessage (HWND hwnd, char* title, char* button1,
00100 char* text, ...);
00101
00126 MGEXT_EXPORT int myWinChoice (HWND hwnd, char* title,
00127 char* button1, char* button2, char* text, ...);
00128
00154 MGEXT_EXPORT int myWinTernary (HWND hwnd, char* title,
00155 char* button1, char* button2, char* button3, char* text, ...);
00156
00171 MGEXT_EXPORT void errorWindow (HWND hwnd, char * str, char* title);
00172
00192 MGEXT_EXPORT HWND createStatusWin (HWND hParentWnd, int width, int height,
00193 char * title, char * text, ...);
00194
00206 MGEXT_EXPORT void destroyStatusWin (HWND hwnd);
00207
00231 MGEXT_EXPORT HWND createToolTipWin (HWND hParentWnd, int x, int y,
00232 int timeout_ms, const char * text, ...);
00233
00252 MGEXT_EXPORT void resetToolTipWin (HWND hwnd, int x, int y,
00253 const char* text, ...);
00254
00266 MGEXT_EXPORT void destroyToolTipWin (HWND hwnd);
00267
00268 #ifdef _CTRL_PROGRESSBAR
00269
00291 MGEXT_EXPORT HWND createProgressWin (HWND hParentWnd, char * title,
00292 char * label, int id, int range);
00293
00305 MGEXT_EXPORT void destroyProgressWin (HWND hwnd);
00306
00307 #endif
00308
00313 typedef struct _myWinButton
00314 {
00316 char* text;
00318 int id;
00320 DWORD flags;
00321 } myWINBUTTON;
00322
00323
00324 typedef struct _myWinMenuItems
00325 {
00326
00327 char** items;
00328
00329 int listboxid;
00330
00331 int* selected;
00332
00333 int minbuttonid;
00334
00335 int maxbuttonid;
00336 } myWINMENUITEMS;
00337
00366 MGEXT_EXPORT int myWinMenu (HWND hParentWnd, const char* title,
00367 const char* label, int width, int listboxheight,
00368 char ** items, int * listItem, myWINBUTTON* buttons);
00369
00374 typedef struct _myWinEntry
00375 {
00377 char* text;
00379 char** value;
00381 int maxlen;
00383 DWORD flags;
00384 } myWINENTRY;
00385
00386
00387 typedef struct _myWinEntryItems
00388 {
00389 myWINENTRY* entries;
00390 int entrycount;
00391 int firstentryid;
00392 int minbuttonid;
00393 int maxbuttonid;
00394 } myWINENTRYITEMS;
00395
00423 MGEXT_EXPORT int myWinEntries (HWND hParentWnd, const char* title,
00424 const char* label, int width, int editboxwidth,
00425 BOOL fIME, myWINENTRY* items, myWINBUTTON* buttons);
00426
00444 MGEXT_EXPORT int myWinHelpMessage (HWND hwnd, int width, int height,
00445 const char* help_title, const char* help_msg);
00446
00453 #ifdef __cplusplus
00454 }
00455 #endif
00456
00457 #endif
00458