]>
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 // Returns true if we are running under Unicode emulation in Win9x environment.
20 // Workaround hacks take effect only if this condition is met
21 // (NB: this function is needed even if !wxUSE_UNICODE_MSLU)
22 WXDLLIMPEXP_BASE
bool wxUsingUnicowsDll();
24 //------------------------------------------------------------------------
25 // Wrongly implemented functions from unicows.dll
26 //------------------------------------------------------------------------
28 #if wxUSE_UNICODE_MSLU
32 WXDLLEXPORT
int wxMSLU_DrawStateW(WXHDC dc
, WXHBRUSH br
, WXFARPROC outputFunc
,
33 WXLPARAM lData
, WXWPARAM wData
,
34 int x
, int y
, int cx
, int cy
,
36 #define DrawStateW(dc, br, func, ld, wd, x, y, cx, cy, flags) \
37 wxMSLU_DrawStateW((WXHDC)dc,(WXHBRUSH)br,(WXFARPROC)func, \
38 ld, wd, x, y, cx, cy, flags)
40 WXDLLEXPORT
int wxMSLU_GetOpenFileNameW(void *ofn
);
41 #define GetOpenFileNameW(ofn) wxMSLU_GetOpenFileNameW((void*)ofn)
43 WXDLLEXPORT
int wxMSLU_GetSaveFileNameW(void *ofn
);
44 #define GetSaveFileNameW(ofn) wxMSLU_GetSaveFileNameW((void*)ofn)
48 //------------------------------------------------------------------------
49 // Missing libc file manipulation functions in Win9x
50 //------------------------------------------------------------------------
52 WXDLLIMPEXP_BASE
int wxMSLU__trename(const wxChar
*oldname
, const wxChar
*newname
);
53 WXDLLIMPEXP_BASE
int wxMSLU__tremove(const wxChar
*name
);
54 WXDLLIMPEXP_BASE
FILE* wxMSLU__tfopen(const wxChar
*name
, const wxChar
*mode
);
56 #if defined( __VISUALC__ ) \
57 || ( defined(__MINGW32__) && wxCHECK_W32API_VERSION( 0, 5 ) ) \
58 || ( defined(__MWERKS__) && defined(__WXMSW__) ) \
59 || ( defined(__BORLANDC__) && (__BORLANDC__ > 0x460) )
60 WXDLLIMPEXP_BASE
int wxMSLU__wopen(const wxChar
*name
, int flags
, int mode
);
61 WXDLLIMPEXP_BASE
int wxMSLU__waccess(const wxChar
*name
, int mode
);
62 WXDLLIMPEXP_BASE
int wxMSLU__wmkdir(const wxChar
*name
);
63 WXDLLIMPEXP_BASE
int wxMSLU__wrmdir(const wxChar
*name
);
64 WXDLLIMPEXP_BASE
int wxMSLU__wstat(const wxChar
*name
, struct _stat
*buffer
);
65 WXDLLIMPEXP_BASE
int wxMSLU__wstati64(const wxChar
*name
, struct _stati64
*buffer
);
68 #endif // wxUSE_UNICODE_MSLU