]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/wince/missing.h
Some WinCE fixes from ABX
[wxWidgets.git] / include / wx / msw / wince / missing.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wince/missing.h
3 // Purpose: Missing things in WinCE 3.0
4 // Author: Marco Cavallini
5 // Modified by:
6 // Created: 16/11/2002
7 // RCS-ID:
8 // Copyright: (c) KOAN SAS ( www.koansoftware.com )
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_CE_MISSING_H_
13 #define _WX_CE_MISSING_H_
14
15 inline BOOL IsIconic( HWND hWnd )
16 {
17 // Probably not right...
18 #if 0
19 long style = GetWindowLong(hWnd, GWL_STYLE);
20 return ((style & WS_MINIMIZE) == 0);
21 #endif
22 return FALSE;
23 }
24
25 #ifdef WIN32_PLATFORM_PSPC
26 #define SM_CXCURSOR 13
27 #define SM_CYCURSOR 14
28 #endif
29
30 /*
31 Most of these are in MSVC++6.0 <wx\wince\winuser.h>
32 see also <wx\msw\gnuwin32\winresrc.h>
33 */
34
35 // ----------------------------------------------------------------------------
36 // Used in msgdlg.cpp, evtloop.cpp
37 // ----------------------------------------------------------------------------
38
39 #ifndef MB_TASKMODAL
40 #define MB_TASKMODAL 0x2000
41 #endif
42
43 ////////////////////////////////////////////////////////
44
45 // JACS: I've commented these out in order to start from
46 // scratch. I don't think we should simply add styles,
47 // classes etc. when we don't know if they're supported
48 // by WinCE libraries.
49
50 #if 0
51
52 /*
53 * Extended Window Styles
54 */
55 #define WS_EX_DLGMODALFRAME 0x00000001L
56 #define WS_EX_NOPARENTNOTIFY 0x00000004L
57 #define WS_EX_TOPMOST 0x00000008L
58 #define WS_EX_ACCEPTFILES 0x00000010L
59 #define WS_EX_TRANSPARENT 0x00000020L
60
61 #define WS_EX_MDICHILD 0x00000040L
62 #define WS_EX_TOOLWINDOW 0x00000080L
63 #define WS_EX_WINDOWEDGE 0x00000100L
64 #define WS_EX_CLIENTEDGE 0x00000200L
65 #define WS_EX_CONTEXTHELP 0x00000400L
66
67 #define WS_EX_RIGHT 0x00001000L
68 #define WS_EX_LEFT 0x00000000L
69 #define WS_EX_RTLREADING 0x00002000L
70 #define WS_EX_LTRREADING 0x00000000L
71 #define WS_EX_LEFTSCROLLBAR 0x00004000L
72 #define WS_EX_RIGHTSCROLLBAR 0x00000000L
73
74 #define WS_EX_CONTROLPARENT 0x00010000L
75 #define WS_EX_STATICEDGE 0x00020000L
76 #define WS_EX_APPWINDOW 0x00040000L
77
78
79 #define WS_EX_OVERLAPPEDWINDOW (WS_EX_WINDOWEDGE | WS_EX_CLIENTEDGE)
80 #define WS_EX_PALETTEWINDOW (WS_EX_WINDOWEDGE | WS_EX_TOOLWINDOW | WS_EX_TOPMOST)
81
82
83 /*
84 * Flags for TrackPopupMenu
85 */
86 #define TPM_LEFTBUTTON 0x0000L
87 #define TPM_RIGHTBUTTON 0x0002L
88 #define TPM_LEFTALIGN 0x0000L
89 #define TPM_CENTERALIGN 0x0004L
90 #define TPM_RIGHTALIGN 0x0008L
91
92 #define TPM_TOPALIGN 0x0000L
93 #define TPM_VCENTERALIGN 0x0010L
94 #define TPM_BOTTOMALIGN 0x0020L
95
96 #define TPM_HORIZONTAL 0x0000L /* Horz alignment matters more */
97 #define TPM_VERTICAL 0x0040L /* Vert alignment matters more */
98 #define TPM_NONOTIFY 0x0080L /* Don't send any notification msgs */
99 #define TPM_RETURNCMD 0x0100L
100
101 #define TPM_RECURSE 0x0001L
102
103
104
105 ////////////////////////////////////////////////////////
106 // Missing declarations into WinCE include files (MCK)
107 ////////////////////////////////////////////////////////
108
109 HCURSOR WINAPI
110 DestroyCursor(HCURSOR hCursor);
111
112 HCURSOR WINAPI
113 CreateCursor(HINSTANCE hInst,
114 int xHotSpot,
115 int yHotSpot,
116 int nWidth,
117 int nHeight,
118 CONST VOID *pvANDPlane,
119 CONST VOID *pvXORPlane );
120
121 ////////////////////////////////////////////////////////
122
123 int WINAPI
124 GetScrollPos(
125 HWND hWnd,
126 int nBar);
127
128 bool WINAPI
129 GetScrollRange(
130 HWND hWnd,
131 int nBar,
132 LPINT lpMinPos,
133 LPINT lpMaxPos);
134
135 bool WINAPI
136 ScrollWindow(
137 HWND hWnd,
138 int XAmount,
139 int YAmount,
140 CONST RECT *lpRect,
141 CONST RECT *lpClipRect);
142
143 LRESULT WINAPI
144 CallWindowProcA(
145 WNDPROC lpPrevWndFunc,
146 HWND hWnd,
147 UINT Msg,
148 WPARAM wParam,
149 LPARAM lParam);
150
151 LRESULT WINAPI
152 CallWindowProcW(
153 WNDPROC lpPrevWndFunc,
154 HWND hWnd,
155 UINT Msg,
156 WPARAM wParam,
157 LPARAM lParam);
158
159 #ifdef UNICODE
160 #define CallWindowProc CallWindowProcW
161 #else
162 #define CallWindowProc CallWindowProcA
163 #endif // !UNICODE
164
165 #endif
166 // 0
167
168 ////////////////////////////////////////////////////////
169
170 #endif // _WX_CE_MISSING_H_