]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/mslu.h
Source cleaning: -1/wxID_ANY/wxDefaultCoord, ::, !!/!IsEmpty(), TRUE/true. FALSE...
[wxWidgets.git] / include / wx / msw / mslu.h
CommitLineData
28f5082b
VS
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
65571936 9// Licence: wxWindows licence
28f5082b
VS
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#if !wxUSE_UNICODE_MSLU
598ddd96 20inline bool wxUsingUnicowsDll() { return false; }
28f5082b
VS
21#else
22
23// Returns true if we are running under Unicode emulation in Win9x environment.
24// Workaround hacks take effect only if this condition is met
25inline bool wxUsingUnicowsDll()
26{
27 return (wxGetOsVersion() == wxWIN95);
28}
29
30//------------------------------------------------------------------------
31// Wrongly implemented functions from unicows.dll
32//------------------------------------------------------------------------
33
34#if wxUSE_GUI
35
598ddd96
WS
36WXDLLEXPORT int wxMSLU_DrawStateW(WXHDC dc, WXHBRUSH br, WXFARPROC outputFunc,
37 WXLPARAM lData, WXWPARAM wData,
38 int x, int y, int cx, int cy,
5489a643 39 unsigned int flags);
28f5082b
VS
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)
43
2679196c 44WXDLLEXPORT int wxMSLU_GetOpenFileNameW(void *ofn);
28f5082b
VS
45#define GetOpenFileNameW(ofn) wxMSLU_GetOpenFileNameW((void*)ofn)
46
2679196c 47WXDLLEXPORT int wxMSLU_GetSaveFileNameW(void *ofn);
28f5082b
VS
48#define GetSaveFileNameW(ofn) wxMSLU_GetSaveFileNameW((void*)ofn)
49
50#endif
51
52//------------------------------------------------------------------------
53// Missing libc file manipulation functions in Win9x
54//------------------------------------------------------------------------
55
2ee1f31f
VS
56WXDLLIMPEXP_BASE int wxMSLU__trename(const wxChar *oldname, const wxChar *newname);
57WXDLLIMPEXP_BASE int wxMSLU__tremove(const wxChar *name);
28f5082b
VS
58
59#if defined( __VISUALC__ ) \
60 || ( defined(__MINGW32__) && wxCHECK_W32API_VERSION( 0, 5 ) ) \
a3bb1d14
CE
61 || ( defined(__MWERKS__) && defined(__WXMSW__) ) \
62 || ( defined(__BORLANDC__) && (__BORLANDC__ > 0x460) )
2ee1f31f
VS
63WXDLLIMPEXP_BASE int wxMSLU__wopen(const wxChar *name, int flags, int mode);
64WXDLLIMPEXP_BASE int wxMSLU__waccess(const wxChar *name, int mode);
65WXDLLIMPEXP_BASE int wxMSLU__wmkdir(const wxChar *name);
66WXDLLIMPEXP_BASE int wxMSLU__wrmdir(const wxChar *name);
67WXDLLIMPEXP_BASE int wxMSLU__wstat(const wxChar *name, struct _stat *buffer);
28f5082b
VS
68#endif
69
70#endif // wxUSE_UNICODE_MSLU
71
72#endif // _WX_MSLU_H_