]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/wince/missing.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/wince/missing.h
3 // Purpose: Missing things in WinCE
4 // Author: Marco Cavallini
7 // Copyright: (c) KOAN SAS ( www.koansoftware.com )
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_CE_MISSING_H_
12 #define _WX_CE_MISSING_H_
14 #include "wx/msw/private.h"
17 inline BOOL
IsIconic( HWND
WXUNUSED(hWnd
) )
19 // Probably not right...
21 long style
= GetWindowLong(hWnd
, GWL_STYLE
);
22 return ((style
& WS_MINIMIZE
) == 0);
28 #define SM_CXCURSOR 13
29 #define SM_CYCURSOR 14
32 // Missing from eVC 4 for some reason
34 #define I_IMAGENONE (-2)
37 #ifndef TBSTYLE_NO_DROPDOWN_ARROW
38 #define TBSTYLE_NO_DROPDOWN_ARROW 0x0080
41 #ifndef SHCMBM_GETMENU
42 #define SHCMBM_GETMENU (WM_USER + 402)
45 #ifndef SHCMBM_SETSUBMENU
46 #define SHCMBM_SETSUBMENU (WM_USER + 400) // wparam == id of button, lParam == hmenu, return is old hmenu
49 #ifndef SHCMBM_GETSUBMENU
50 #define SHCMBM_GETSUBMENU (WM_USER + 401) // lParam == ID
53 #ifndef LVS_EX_FULLROWSELECT
54 #define LVS_EX_FULLROWSELECT 0x00000020
57 #ifndef TVS_FULLROWSELECT
58 #define TVS_FULLROWSELECT 0x1000
61 #ifndef TVM_SETBKCOLOR
62 #define TVM_SETBKCOLOR (TV_FIRST + 29)
63 #define TVM_SETTEXTCOLOR (TV_FIRST + 30)
66 // Used in msgdlg.cpp, evtloop.cpp
68 #define MB_TASKMODAL 0x2000
72 #define HGDI_ERROR ((HANDLE)(0xFFFFFFFFL))
75 // some windows styles don't exist in CE SDK, replace them with closest
78 #define WS_THICKFRAME WS_BORDER
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)
93 // update: they're defined in eVC 4 inside "#ifdef UNDER_CE" block
95 #define GlobalAlloc LocalAlloc
96 #define GlobalFree LocalFree
97 #define GlobalSize LocalSize
100 #define GMEM_MOVEABLE 0
104 // WinCE RTL doesn't implement bsearch() used in encconv.cpp
106 bsearch(const void *key
, const void *base
, size_t num
, size_t size
,
107 int (wxCMPFUNC_CONV
*cmp
)(const void *, const void *));
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 */
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 */
118 #define O_TEXT 0x4000 /* file mode is text (translated) */
119 #define O_BINARY 0x8000 /* file mode is binary (untranslated) */
122 #define SS_SUNKEN 0x00001000L
125 // unsupported flags for WINDOWPOS structure
126 #ifndef SWP_NOCOPYBITS
127 #define SWP_NOCOPYBITS 0
130 #ifndef SWP_NOOWNERZORDER
131 #define SWP_NOOWNERZORDER 0
134 #ifndef SWP_NOSENDCHANGING
135 #define SWP_NOSENDCHANGING 0
138 #endif // _WX_CE_MISSING_H_