]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/mslu.h
Implement GetPageText for the OSX WebKit implementation.
[wxWidgets.git] / include / wx / palmos / mslu.h
CommitLineData
ffecfa5a
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/palmos/mslu.h
3// Purpose: Fixes for bugs in MSLU
e1d63b79 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a 5// Modified by:
e1d63b79 6// Created: 10/13/04
ffecfa5a 7// RCS-ID: $Id$
e1d63b79 8// Copyright: (c) William Osborne
ffecfa5a
JS
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"
e3f6cbd9 17#include "wx/chartype.h"
ffecfa5a
JS
18
19#if !wxUSE_UNICODE_MSLU
4055ed82 20inline bool wxUsingUnicowsDll() { return false; }
ffecfa5a
JS
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
53a2db12 36WXDLLIMPEXP_CORE int wxMSLU_DrawStateW(WXHDC dc, WXHBRUSH br, WXFARPROC outputFunc,
4055ed82
WS
37 WXLPARAM lData, WXWPARAM wData,
38 int x, int y, int cx, int cy,
ffecfa5a
JS
39 unsigned int flags);
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
53a2db12 44WXDLLIMPEXP_CORE int wxMSLU_GetOpenFileNameW(void *ofn);
ffecfa5a
JS
45#define GetOpenFileNameW(ofn) wxMSLU_GetOpenFileNameW((void*)ofn)
46
53a2db12 47WXDLLIMPEXP_CORE int wxMSLU_GetSaveFileNameW(void *ofn);
ffecfa5a
JS
48#define GetSaveFileNameW(ofn) wxMSLU_GetSaveFileNameW((void*)ofn)
49
50#endif
51
52//------------------------------------------------------------------------
53// Missing libc file manipulation functions in Win9x
54//------------------------------------------------------------------------
55
53a2db12
FM
56WXDLLIMPEXP_CORE int wxMSLU__trename(const wxChar *oldname, const wxChar *newname);
57WXDLLIMPEXP_CORE int wxMSLU__tremove(const wxChar *name);
ffecfa5a 58
ffecfa5a
JS
59#endif // wxUSE_UNICODE_MSLU
60
61#endif // _WX_MSLU_H_