]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/msw/wince/missing.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / msw / wince / missing.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/msw/wince/missing.h
3// Purpose: Missing things in WinCE
4// Author: Marco Cavallini
5// Modified by:
6// Created: 16/11/2002
7// Copyright: (c) KOAN SAS ( www.koansoftware.com )
8// Licence: wxWindows licence
9///////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_CE_MISSING_H_
12#define _WX_CE_MISSING_H_
13
14#include "wx/msw/private.h"
15#include "shellapi.h"
16
17inline BOOL IsIconic( HWND WXUNUSED(hWnd) )
18{
19 // Probably not right...
20#if 0
21 long style = GetWindowLong(hWnd, GWL_STYLE);
22 return ((style & WS_MINIMIZE) == 0);
23#endif
24 return FALSE;
25}
26
27#ifdef __POCKETPC__
28#define SM_CXCURSOR 13
29#define SM_CYCURSOR 14
30#endif
31
32// Missing from eVC 4 for some reason
33#ifndef I_IMAGENONE
34#define I_IMAGENONE (-2)
35#endif
36
37#ifndef TBSTYLE_NO_DROPDOWN_ARROW
38#define TBSTYLE_NO_DROPDOWN_ARROW 0x0080
39#endif
40
41#ifndef SHCMBM_GETMENU
42#define SHCMBM_GETMENU (WM_USER + 402)
43#endif
44
45#ifndef SHCMBM_SETSUBMENU
46#define SHCMBM_SETSUBMENU (WM_USER + 400) // wparam == id of button, lParam == hmenu, return is old hmenu
47#endif
48
49#ifndef SHCMBM_GETSUBMENU
50#define SHCMBM_GETSUBMENU (WM_USER + 401) // lParam == ID
51#endif
52
53#ifndef LVS_EX_FULLROWSELECT
54 #define LVS_EX_FULLROWSELECT 0x00000020
55#endif
56
57#ifndef TVS_FULLROWSELECT
58 #define TVS_FULLROWSELECT 0x1000
59#endif
60
61#ifndef TVM_SETBKCOLOR
62 #define TVM_SETBKCOLOR (TV_FIRST + 29)
63 #define TVM_SETTEXTCOLOR (TV_FIRST + 30)
64#endif
65
66// Used in msgdlg.cpp, evtloop.cpp
67#ifndef MB_TASKMODAL
68#define MB_TASKMODAL 0x2000
69#endif
70
71#ifndef HGDI_ERROR
72#define HGDI_ERROR ((HANDLE)(0xFFFFFFFFL))
73#endif
74
75// some windows styles don't exist in CE SDK, replace them with closest
76// equivalents
77#ifndef WS_THICKFRAME
78 #define WS_THICKFRAME WS_BORDER
79#endif
80
81#ifndef WS_MINIMIZE
82 #define WS_MINIMIZE 0
83#endif
84
85#ifndef WS_MAXIMIZE
86 #define WS_MAXIMIZE 0
87#endif
88
89
90// global memory functions don't exist under CE (good riddance, of course, but
91// the existing code still uses them in some places, so make it compile)
92//
93// update: they're defined in eVC 4 inside "#ifdef UNDER_CE" block
94#ifndef UNDER_CE
95 #define GlobalAlloc LocalAlloc
96 #define GlobalFree LocalFree
97 #define GlobalSize LocalSize
98 #define GPTR LPTR
99 #define GHND LPTR
100 #define GMEM_MOVEABLE 0
101 #define GMEM_SHARE 0
102#endif // !UNDER_CE
103
104// WinCE RTL doesn't implement bsearch() used in encconv.cpp
105extern "C" void *
106bsearch(const void *key, const void *base, size_t num, size_t size,
107 int (wxCMPFUNC_CONV *cmp)(const void *, const void *));
108
109#define O_RDONLY 0x0000 /* open for reading only */
110#define O_WRONLY 0x0001 /* open for writing only */
111#define O_RDWR 0x0002 /* open for reading and writing */
112#define O_APPEND 0x0008 /* writes done at eof */
113
114#define O_CREAT 0x0100 /* create and open file */
115#define O_TRUNC 0x0200 /* open and truncate */
116#define O_EXCL 0x0400 /* open only if file doesn't already exist */
117
118#define O_TEXT 0x4000 /* file mode is text (translated) */
119#define O_BINARY 0x8000 /* file mode is binary (untranslated) */
120
121#ifndef SS_SUNKEN
122 #define SS_SUNKEN 0x00001000L
123#endif
124
125// unsupported flags for WINDOWPOS structure
126#ifndef SWP_NOCOPYBITS
127 #define SWP_NOCOPYBITS 0
128#endif
129
130#ifndef SWP_NOOWNERZORDER
131 #define SWP_NOOWNERZORDER 0
132#endif
133
134#ifndef SWP_NOSENDCHANGING
135 #define SWP_NOSENDCHANGING 0
136#endif
137
138#endif // _WX_CE_MISSING_H_
139