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 
00021 /*
00022  * $Id: mywindows.h,v 1.8.2.3 2006/06/05 09:03:48 xwyan Exp $
00023  *
00024  *             MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks, 
00025  *                     pSOS, ThreadX, NuCleus, OSE, and Win32 version 1.6.x
00026  *             Copyright (C) 2002-2006 Feynman Software.
00027  *             Copyright (C) 1998-2002 Wei Yongming.
00028  */
00029 
00030 #ifndef _MGUI_MYWINDOWS_H
00031     #define _MGUI_MYWINDOWS_H
00032 
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif  /* __cplusplus */
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 /* _CTRL_PROGRESSBAR */
00308 
00313 typedef struct _myWinButton
00314 {
00316     char*   text;
00318     int     id;
00320     DWORD   flags;
00321 } myWINBUTTON;
00322 
00323 /* This is an internal structure. */
00324 typedef struct _myWinMenuItems
00325 {
00326     /* The pointer to the array of the item strings. */
00327     char**      items;
00328     /* The identifier of the listbox display the menu items. */
00329     int         listboxid;
00330     /* The pointer to the array of the selection status of the items. */
00331     int*        selected;
00332     /* The minimal button identifier. */
00333     int         minbuttonid;
00334     /* The maximal button identifier. */
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 /* This is an internal structure. */
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  /* __cplusplus */
00456 
00457 #endif /* _MGUI_MYWINDOWS_H */
00458 

Generated on Mon Jun 26 13:54:27 2006 for MiniGUI V1.6.9 API Reference by  doxygen 1.4.2