]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/mslu.h
Added windowing and scrolling logic to generic
[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
7eb872f4
VS
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)
22WXDLLIMPEXP_BASE bool wxUsingUnicowsDll();
28f5082b
VS
23
24//------------------------------------------------------------------------
25// Wrongly implemented functions from unicows.dll
26//------------------------------------------------------------------------
27
e11898f9 28#if wxUSE_UNICODE_MSLU
7eb872f4 29
28f5082b
VS
30#if wxUSE_GUI
31
598ddd96
WS
32WXDLLEXPORT int wxMSLU_DrawStateW(WXHDC dc, WXHBRUSH br, WXFARPROC outputFunc,
33 WXLPARAM lData, WXWPARAM wData,
34 int x, int y, int cx, int cy,
5489a643 35 unsigned int flags);
28f5082b
VS
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)
39
2679196c 40WXDLLEXPORT int wxMSLU_GetOpenFileNameW(void *ofn);
28f5082b
VS
41#define GetOpenFileNameW(ofn) wxMSLU_GetOpenFileNameW((void*)ofn)
42
2679196c 43WXDLLEXPORT int wxMSLU_GetSaveFileNameW(void *ofn);
28f5082b
VS
44#define GetSaveFileNameW(ofn) wxMSLU_GetSaveFileNameW((void*)ofn)
45
46#endif
47
48//------------------------------------------------------------------------
49// Missing libc file manipulation functions in Win9x
50//------------------------------------------------------------------------
51
2ee1f31f
VS
52WXDLLIMPEXP_BASE int wxMSLU__trename(const wxChar *oldname, const wxChar *newname);
53WXDLLIMPEXP_BASE int wxMSLU__tremove(const wxChar *name);
cf9d4c67 54WXDLLIMPEXP_BASE FILE* wxMSLU__tfopen(const wxChar *name, const wxChar *mode);
28f5082b
VS
55
56#if defined( __VISUALC__ ) \
57 || ( defined(__MINGW32__) && wxCHECK_W32API_VERSION( 0, 5 ) ) \
a3bb1d14
CE
58 || ( defined(__MWERKS__) && defined(__WXMSW__) ) \
59 || ( defined(__BORLANDC__) && (__BORLANDC__ > 0x460) )
61f3fead
VZ
60
61#ifdef __BORLANDC__
62 // BCC has _stati64() function but struct stati64
63 #define _stati64 stati64
64#endif
65
2ee1f31f
VS
66WXDLLIMPEXP_BASE int wxMSLU__wopen(const wxChar *name, int flags, int mode);
67WXDLLIMPEXP_BASE int wxMSLU__waccess(const wxChar *name, int mode);
68WXDLLIMPEXP_BASE int wxMSLU__wmkdir(const wxChar *name);
69WXDLLIMPEXP_BASE int wxMSLU__wrmdir(const wxChar *name);
70WXDLLIMPEXP_BASE int wxMSLU__wstat(const wxChar *name, struct _stat *buffer);
6294ac2e 71WXDLLIMPEXP_BASE int wxMSLU__wstati64(const wxChar *name, struct _stati64 *buffer);
28f5082b
VS
72#endif
73
74#endif // wxUSE_UNICODE_MSLU
75
76#endif // _WX_MSLU_H_