]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/wince/missing.h
4e50b0d87df3be7e6ee0c88de36c09dc3dec3857
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wince/missing.h
3 // Purpose: Missing things in WinCE
4 // Author: Marco Cavallini
8 // Copyright: (c) KOAN SAS ( www.koansoftware.com )
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_CE_MISSING_H_
13 #define _WX_CE_MISSING_H_
15 #include "wx/msw/private.h"
18 inline BOOL
IsIconic( HWND
WXUNUSED(hWnd
) )
20 // Probably not right...
22 long style
= GetWindowLong(hWnd
, GWL_STYLE
);
23 return ((style
& WS_MINIMIZE
) == 0);
29 #define SM_CXCURSOR 13
30 #define SM_CYCURSOR 14
33 // Missing from eVC 4 for some reason
35 #define I_IMAGENONE (-2)
38 #ifndef TBSTYLE_NO_DROPDOWN_ARROW
39 #define TBSTYLE_NO_DROPDOWN_ARROW 0x0080
42 #ifndef SHCMBM_GETMENU
43 #define SHCMBM_GETMENU (WM_USER + 402)
46 #ifndef SHCMBM_SETSUBMENU
47 #define SHCMBM_SETSUBMENU (WM_USER + 400) // wparam == id of button, lParam == hmenu, return is old hmenu
50 #ifndef SHCMBM_GETSUBMENU
51 #define SHCMBM_GETSUBMENU (WM_USER + 401) // lParam == ID
54 #ifndef LVS_EX_FULLROWSELECT
55 #define LVS_EX_FULLROWSELECT 0x00000020
58 #ifndef TVS_FULLROWSELECT
59 #define TVS_FULLROWSELECT 0x1000
62 #ifndef TVM_SETBKCOLOR
63 #define TVM_SETBKCOLOR (TV_FIRST + 29)
64 #define TVM_SETTEXTCOLOR (TV_FIRST + 30)
67 // Used in msgdlg.cpp, evtloop.cpp
69 #define MB_TASKMODAL 0x2000
73 #define HGDI_ERROR ((HANDLE)(0xFFFFFFFFL))
76 // some windows styles don't exist in CE SDK, replace them with closest
79 #define WS_THICKFRAME WS_BORDER
91 // global memory functions don't exist under CE (good riddance, of course, but
92 // the existing code still uses them in some places, so make it compile)
94 // update: they're defined in eVC 4 inside "#ifdef UNDER_CE" block
96 #define GlobalAlloc LocalAlloc
97 #define GlobalFree LocalFree
98 #define GlobalSize LocalSize
101 #define GMEM_MOVEABLE 0
105 // WinCE RTL doesn't implement bsearch() used in encconv.cpp
107 bsearch(const void *key
, const void *base
, size_t num
, size_t size
,
108 int (wxCMPFUNC_CONV
*cmp
)(const void *, const void *));
110 #define O_RDONLY 0x0000 /* open for reading only */
111 #define O_WRONLY 0x0001 /* open for writing only */
112 #define O_RDWR 0x0002 /* open for reading and writing */
113 #define O_APPEND 0x0008 /* writes done at eof */
115 #define O_CREAT 0x0100 /* create and open file */
116 #define O_TRUNC 0x0200 /* open and truncate */
117 #define O_EXCL 0x0400 /* open only if file doesn't already exist */
119 #define O_TEXT 0x4000 /* file mode is text (translated) */
120 #define O_BINARY 0x8000 /* file mode is binary (untranslated) */
123 #define SS_SUNKEN 0x00001000L
126 // unsupported flags for WINDOWPOS structure
127 #ifndef SWP_NOCOPYBITS
128 #define SWP_NOCOPYBITS 0
131 #ifndef SWP_NOOWNERZORDER
132 #define SWP_NOOWNERZORDER 0
135 #ifndef SWP_NOSENDCHANGING
136 #define SWP_NOSENDCHANGING 0
139 #endif // _WX_CE_MISSING_H_