00001
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef _MGUI_MYWINDOWS_H
00033 #define _MGUI_MYWINDOWS_H
00034
00035 #ifdef __cplusplus
00036 extern "C" {
00037 #endif
00038
00077 MGEXT_EXPORT int myMessageBox (HWND hwnd, DWORD dwStyle, char* title,
00078 char* text, ...);
00079
00101 MGEXT_EXPORT int myWinMessage (HWND hwnd, char* title, char* button1,
00102 char* text, ...);
00103
00128 MGEXT_EXPORT int myWinChoice (HWND hwnd, char* title,
00129 char* button1, char* button2, char* text, ...);
00130
00156 MGEXT_EXPORT int myWinTernary (HWND hwnd, char* title,
00157 char* button1, char* button2, char* button3, char* text, ...);
00158
00173 MGEXT_EXPORT void errorWindow (HWND hwnd, char * str, char* title);
00174
00194 MGEXT_EXPORT HWND createStatusWin (HWND hParentWnd, int width, int height,
00195 char * title, char * text, ...);
00196
00208 MGEXT_EXPORT void destroyStatusWin (HWND hwnd);
00209
00233 MGEXT_EXPORT HWND createToolTipWin (HWND hParentWnd, int x, int y,
00234 int timeout_ms, const char * text, ...);
00235
00254 MGEXT_EXPORT void resetToolTipWin (HWND hwnd, int x, int y,
00255 const char* text, ...);
00256
00268 MGEXT_EXPORT void destroyToolTipWin (HWND hwnd);
00269
00270 #ifdef _CTRL_PROGRESSBAR
00271
00293 MGEXT_EXPORT HWND createProgressWin (HWND hParentWnd, char * title,
00294 char * label, int id, int range);
00295
00307 MGEXT_EXPORT void destroyProgressWin (HWND hwnd);
00308
00309 #endif
00310
00315 typedef struct _myWinButton
00316 {
00318 char* text;
00320 int id;
00322 DWORD flags;
00323 } myWINBUTTON;
00324
00325
00326 typedef struct _myWinMenuItems
00327 {
00328
00329 char** items;
00330
00331 int listboxid;
00332
00333 int* selected;
00334
00335 int minbuttonid;
00336
00337 int maxbuttonid;
00338 } myWINMENUITEMS;
00339
00368 MGEXT_EXPORT int myWinMenu (HWND hParentWnd, const char* title,
00369 const char* label, int width, int listboxheight,
00370 char ** items, int * listItem, myWINBUTTON* buttons);
00371
00376 typedef struct _myWinEntry
00377 {
00379 char* text;
00381 char** value;
00383 int maxlen;
00385 DWORD flags;
00386 } myWINENTRY;
00387
00388
00389 typedef struct _myWinEntryItems
00390 {
00391 myWINENTRY* entries;
00392 int entrycount;
00393 int firstentryid;
00394 int minbuttonid;
00395 int maxbuttonid;
00396 } myWINENTRYITEMS;
00397
00425 MGEXT_EXPORT int myWinEntries (HWND hParentWnd, const char* title,
00426 const char* label, int width, int editboxwidth,
00427 BOOL fIME, myWINENTRY* items, myWINBUTTON* buttons);
00428
00446 MGEXT_EXPORT int myWinHelpMessage (HWND hwnd, int width, int height,
00447 const char* help_title, const char* help_msg);
00448
00455 #ifdef __cplusplus
00456 }
00457 #endif
00458
00459 #endif
00460