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

filedlg.h

Go to the documentation of this file.
00001 
00020 /*
00021  * $Id: filedlg.h,v 1.12.2.3 2006/06/05 09:03:48 xwyan Exp $
00022  *
00023  *             MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks, 
00024  *                     pSOS, ThreadX, NuCleus, OSE, and Win32 version 1.6.x
00025  *             Copyright (C) 2002-2006 Feynman Software.
00026  *             Copyright (C) 1998-2002 Wei Yongming.
00027  */
00028 
00029 #ifndef _MGUI_FILEDLG_H
00030 #define _MGUI_FILEDLG_H
00031 
00032 #include <sys/types.h>
00033 #include <dirent.h>
00034 
00035 #ifdef __cplusplus
00036 extern "C" {
00037 #endif  /* __cplusplus */
00038 
00053 #define FILE_ERROR_OK           0
00054 
00059 #define FILE_ERROR_PARAMERR     -1
00060 
00065 #define FILE_ERROR_PATHNOTEXIST -2
00066 
00071 typedef struct _FILEDLGDATA
00072 {
00074         BOOL    IsSave;
00076     char        filefullname[NAME_MAX + PATH_MAX + 1];
00078     char        filename[NAME_MAX + 1];
00080     char        filepath[PATH_MAX + 1];
00081 } FILEDLGDATA;
00082 
00084 typedef FILEDLGDATA* PFILEDLGDATA;
00085 
00111 MGEXT_EXPORT int OpenFileDialogEx (HWND hWnd, int lx, int ty, 
00112                 int w, int h, PFILEDLGDATA pmwfi);
00113 
00136 static inline int OpenFileDialog (HWND hWnd, BOOL isSave, PFILEDLGDATA pmwfi)
00137 {
00138     pmwfi->IsSave = isSave;
00139     return OpenFileDialogEx (hWnd, 50, 50, 330, 280, pmwfi);
00140 }
00141 
00146 #ifdef __cplusplus
00147 }
00148 #endif  /* __cplusplus */
00149 
00150 #endif /* _MGUI_FILEDLG_H */
00151 
00152 

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