Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

mywindows.h

Go to the documentation of this file.
00001 
00022 /*
00023  * $Id: mywindows.h,v 1.12 2006/06/11 04:20:37 weiym Exp $
00024  *
00025  *             MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks, 
00026  *                     pSOS, ThreadX, NuCleus, OSE, and Win32.
00027  *
00028  *             Copyright (C) 2002-2006 Feynman Software.
00029  *             Copyright (C) 1998-2002 Wei Yongming.
00030  */
00031 
00032 #ifndef _MGUI_MYWINDOWS_H
00033     #define _MGUI_MYWINDOWS_H
00034 
00035 #ifdef __cplusplus
00036 extern "C" {
00037 #endif  /* __cplusplus */
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 /* _CTRL_PROGRESSBAR */
00310 
00315 typedef struct _myWinButton
00316 {
00318     char*   text;
00320     int     id;
00322     DWORD   flags;
00323 } myWINBUTTON;
00324 
00325 /* This is an internal structure. */
00326 typedef struct _myWinMenuItems
00327 {
00328     /* The pointer to the array of the item strings. */
00329     char**      items;
00330     /* The identifier of the listbox display the menu items. */
00331     int         listboxid;
00332     /* The pointer to the array of the selection status of the items. */
00333     int*        selected;
00334     /* The minimal button identifier. */
00335     int         minbuttonid;
00336     /* The maximal button identifier. */
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 /* This is an internal structure. */
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  /* __cplusplus */
00458 
00459 #endif /* _MGUI_MYWINDOWS_H */
00460 

Generated on Mon Jun 26 14:21:34 2006 for MiniGUI V2.0.3 API Reference by  doxygen 1.4.2