2002-02-18 15:38:59 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/msw/mslu.h
|
|
|
|
// Purpose: Fixes for bugs in MSLU
|
|
|
|
// Author: Vaclav Slavik
|
|
|
|
// Modified by:
|
|
|
|
// Created: 2002/02/17
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 2002 Vaclav Slavik
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2002-02-18 15:38:59 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_MSLU_H_
|
|
|
|
#define _WX_MSLU_H_
|
|
|
|
|
|
|
|
#include "wx/defs.h"
|
|
|
|
#include "wx/utils.h"
|
|
|
|
#include "wx/wxchar.h"
|
|
|
|
|
2004-09-26 19:08:01 -04:00
|
|
|
// Returns true if we are running under Unicode emulation in Win9x environment.
|
|
|
|
// Workaround hacks take effect only if this condition is met
|
|
|
|
// (NB: this function is needed even if !wxUSE_UNICODE_MSLU)
|
|
|
|
WXDLLIMPEXP_BASE bool wxUsingUnicowsDll();
|
2002-02-18 15:38:59 -05:00
|
|
|
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
// Wrongly implemented functions from unicows.dll
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
|
2004-09-27 09:06:30 -04:00
|
|
|
#if wxUSE_UNICODE_MSLU
|
2004-09-26 19:08:01 -04:00
|
|
|
|
2002-02-18 15:38:59 -05:00
|
|
|
#if wxUSE_GUI
|
|
|
|
|
2004-08-30 06:18:55 -04:00
|
|
|
WXDLLEXPORT int wxMSLU_DrawStateW(WXHDC dc, WXHBRUSH br, WXFARPROC outputFunc,
|
|
|
|
WXLPARAM lData, WXWPARAM wData,
|
|
|
|
int x, int y, int cx, int cy,
|
2002-03-08 18:48:16 -05:00
|
|
|
unsigned int flags);
|
2002-02-18 15:38:59 -05:00
|
|
|
#define DrawStateW(dc, br, func, ld, wd, x, y, cx, cy, flags) \
|
|
|
|
wxMSLU_DrawStateW((WXHDC)dc,(WXHBRUSH)br,(WXFARPROC)func, \
|
|
|
|
ld, wd, x, y, cx, cy, flags)
|
|
|
|
|
2004-08-26 00:58:43 -04:00
|
|
|
WXDLLEXPORT int wxMSLU_GetOpenFileNameW(void *ofn);
|
2002-02-18 15:38:59 -05:00
|
|
|
#define GetOpenFileNameW(ofn) wxMSLU_GetOpenFileNameW((void*)ofn)
|
|
|
|
|
2004-08-26 00:58:43 -04:00
|
|
|
WXDLLEXPORT int wxMSLU_GetSaveFileNameW(void *ofn);
|
2002-02-18 15:38:59 -05:00
|
|
|
#define GetSaveFileNameW(ofn) wxMSLU_GetSaveFileNameW((void*)ofn)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
// Missing libc file manipulation functions in Win9x
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
|
2004-08-24 17:15:18 -04:00
|
|
|
WXDLLIMPEXP_BASE int wxMSLU__trename(const wxChar *oldname, const wxChar *newname);
|
|
|
|
WXDLLIMPEXP_BASE int wxMSLU__tremove(const wxChar *name);
|
2005-01-07 13:48:30 -05:00
|
|
|
WXDLLIMPEXP_BASE FILE* wxMSLU__tfopen(const wxChar *name, const wxChar *mode);
|
2002-02-18 15:38:59 -05:00
|
|
|
|
|
|
|
#if defined( __VISUALC__ ) \
|
|
|
|
|| ( defined(__MINGW32__) && wxCHECK_W32API_VERSION( 0, 5 ) ) \
|
2003-04-28 16:58:29 -04:00
|
|
|
|| ( defined(__MWERKS__) && defined(__WXMSW__) ) \
|
2006-04-14 08:16:29 -04:00
|
|
|
|| ( defined(__BORLANDC__) && (__BORLANDC__ > 0x460) ) \
|
|
|
|
|| defined(__DMC__)
|
2005-02-27 09:43:31 -05:00
|
|
|
|
|
|
|
#ifdef __BORLANDC__
|
|
|
|
// BCC has _stati64() function but struct stati64
|
|
|
|
#define _stati64 stati64
|
|
|
|
#endif
|
|
|
|
|
2004-08-24 17:15:18 -04:00
|
|
|
WXDLLIMPEXP_BASE int wxMSLU__wopen(const wxChar *name, int flags, int mode);
|
|
|
|
WXDLLIMPEXP_BASE int wxMSLU__waccess(const wxChar *name, int mode);
|
|
|
|
WXDLLIMPEXP_BASE int wxMSLU__wmkdir(const wxChar *name);
|
|
|
|
WXDLLIMPEXP_BASE int wxMSLU__wrmdir(const wxChar *name);
|
|
|
|
WXDLLIMPEXP_BASE int wxMSLU__wstat(const wxChar *name, struct _stat *buffer);
|
2004-09-25 18:44:19 -04:00
|
|
|
WXDLLIMPEXP_BASE int wxMSLU__wstati64(const wxChar *name, struct _stati64 *buffer);
|
2002-02-18 15:38:59 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // wxUSE_UNICODE_MSLU
|
|
|
|
|
|
|
|
#endif // _WX_MSLU_H_
|