]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/mslu.h
Trying hard to make things compile.
[wxWidgets.git] / include / wx / msw / mslu.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/mslu.h
3 // Purpose: Fixes for bugs in MSLU
4 // Author: Vaclav Slavik
5 // Modified by:
6 // Created: 2002/02/17
7 // RCS-ID: $Id$
8 // Copyright: (c) 2002 Vaclav Slavik
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_MSLU_H_
13 #define _WX_MSLU_H_
14
15 #include "wx/defs.h"
16 #include "wx/utils.h"
17 #include "wx/wxchar.h"
18
19 //------------------------------------------------------------------------
20
21 WXDLLEXPORT bool wxUsingUnicowsDll();
22
23 #if wxUSE_UNICODE_MSLU
24
25 //------------------------------------------------------------------------
26 // Wrongly implemented functions from unicows.dll
27 //------------------------------------------------------------------------
28
29 #if wxUSE_GUI
30
31 WXDLLEXPORT int wxMSLU_DrawStateW(WXHDC dc, WXHBRUSH br, WXFARPROC outputFunc,
32 WXLPARAM lData, WXWPARAM wData,
33 int x, int y, int cx, int cy,
34 unsigned int flags);
35 #define DrawStateW(dc, br, func, ld, wd, x, y, cx, cy, flags) \
36 wxMSLU_DrawStateW((WXHDC)dc,(WXHBRUSH)br,(WXFARPROC)func, \
37 ld, wd, x, y, cx, cy, flags)
38
39 WXDLLEXPORT int wxMSLU_GetOpenFileNameW(void *ofn);
40 #define GetOpenFileNameW(ofn) wxMSLU_GetOpenFileNameW((void*)ofn)
41
42 WXDLLEXPORT int wxMSLU_GetSaveFileNameW(void *ofn);
43 #define GetSaveFileNameW(ofn) wxMSLU_GetSaveFileNameW((void*)ofn)
44
45 #endif
46
47 //------------------------------------------------------------------------
48 // Missing libc file manipulation functions in Win9x
49 //------------------------------------------------------------------------
50
51 WXDLLIMPEXP_BASE int wxMSLU__trename(const wxChar *oldname, const wxChar *newname);
52 WXDLLIMPEXP_BASE int wxMSLU__tremove(const wxChar *name);
53
54 #if defined( __VISUALC__ ) \
55 || ( defined(__MINGW32__) && wxCHECK_W32API_VERSION( 0, 5 ) ) \
56 || ( defined(__MWERKS__) && defined(__WXMSW__) ) \
57 || ( defined(__BORLANDC__) && (__BORLANDC__ > 0x460) )
58 WXDLLIMPEXP_BASE int wxMSLU__wopen(const wxChar *name, int flags, int mode);
59 WXDLLIMPEXP_BASE int wxMSLU__waccess(const wxChar *name, int mode);
60 WXDLLIMPEXP_BASE int wxMSLU__wmkdir(const wxChar *name);
61 WXDLLIMPEXP_BASE int wxMSLU__wrmdir(const wxChar *name);
62 WXDLLIMPEXP_BASE int wxMSLU__wstat(const wxChar *name, struct _stat *buffer);
63 WXDLLIMPEXP_BASE int wxMSLU__wstati64(const wxChar *name, struct _stati64 *buffer);
64 #endif
65
66 #endif // wxUSE_UNICODE_MSLU
67
68 #endif // _WX_MSLU_H_