]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/mslu.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Fixes for bugs in MSLU
4 // Author: Vaclav Slavik
8 // Copyright: (c) 2002 Vaclav Slavik
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
17 #include "wx/wxchar.h"
19 #if !wxUSE_UNICODE_MSLU
20 inline bool wxUsingUnicowsDll() { return FALSE
; }
23 // Returns true if we are running under Unicode emulation in Win9x environment.
24 // Workaround hacks take effect only if this condition is met
25 inline bool wxUsingUnicowsDll()
27 return (wxGetOsVersion() == wxWIN95
);
30 //------------------------------------------------------------------------
31 // Wrongly implemented functions from unicows.dll
32 //------------------------------------------------------------------------
36 WXDLLEXPORT
int wxMSLU_DrawStateW(WXHDC dc
, WXHBRUSH br
, WXFARPROC outputFunc
,
37 WXLPARAM lData
, WXWPARAM wData
,
38 int x
, int y
, int cx
, int cy
,
40 #define DrawStateW(dc, br, func, ld, wd, x, y, cx, cy, flags) \
41 wxMSLU_DrawStateW((WXHDC)dc,(WXHBRUSH)br,(WXFARPROC)func, \
42 ld, wd, x, y, cx, cy, flags)
44 WXDLLEXPORT
int wxMSLU_GetOpenFileNameW(void *ofn
);
45 #define GetOpenFileNameW(ofn) wxMSLU_GetOpenFileNameW((void*)ofn)
47 WXDLLEXPORT
int wxMSLU_GetSaveFileNameW(void *ofn
);
48 #define GetSaveFileNameW(ofn) wxMSLU_GetSaveFileNameW((void*)ofn)
52 //------------------------------------------------------------------------
53 // Missing libc file manipulation functions in Win9x
54 //------------------------------------------------------------------------
56 WXDLLEXPORT
int wxMSLU__trename(const wxChar
*oldname
, const wxChar
*newname
);
57 WXDLLEXPORT
int wxMSLU__tremove(const wxChar
*name
);
59 #if defined( __VISUALC__ ) \
60 || ( defined(__MINGW32__) && wxCHECK_W32API_VERSION( 0, 5 ) ) \
61 || ( defined(__MWERKS__) && defined(__WXMSW__) ) \
62 || ( defined(__BORLANDC__) && (__BORLANDC__ > 0x460) )
63 WXDLLEXPORT
int wxMSLU__wopen(const wxChar
*name
, int flags
, int mode
);
64 WXDLLEXPORT
int wxMSLU__waccess(const wxChar
*name
, int mode
);
65 WXDLLEXPORT
int wxMSLU__wmkdir(const wxChar
*name
);
66 WXDLLEXPORT
int wxMSLU__wrmdir(const wxChar
*name
);
67 WXDLLEXPORT
int wxMSLU__wstat(const wxChar
*name
, struct _stat
*buffer
);
70 #endif // wxUSE_UNICODE_MSLU