]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/wince/missing.h
undisable many warnings for VC++ in defs.h and fixed several thousands of them in...
[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 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
26 /*
27 Most of these are in MSVC++6.0 <wx\wince\winuser.h>
28 see also <wx\msw\gnuwin32\winresrc.h>
29 */
30 ////////////////////////////////////////////////////////
31
32 // JACS: I've commented these out in order to start from
33 // scratch. I don't think we should simply add styles,
34 // classes etc. when we don't know if they're supported
35 // by WinCE libraries.
36
37 #if 0
38
39 /*
40 * Extended Window Styles
41 */
42 #define WS_EX_DLGMODALFRAME 0x00000001L
43 #define WS_EX_NOPARENTNOTIFY 0x00000004L
44 #define WS_EX_TOPMOST 0x00000008L
45 #define WS_EX_ACCEPTFILES 0x00000010L
46 #define WS_EX_TRANSPARENT 0x00000020L
47
48 #define WS_EX_MDICHILD 0x00000040L
49 #define WS_EX_TOOLWINDOW 0x00000080L
50 #define WS_EX_WINDOWEDGE 0x00000100L
51 #define WS_EX_CLIENTEDGE 0x00000200L
52 #define WS_EX_CONTEXTHELP 0x00000400L
53
54 #define WS_EX_RIGHT 0x00001000L
55 #define WS_EX_LEFT 0x00000000L
56 #define WS_EX_RTLREADING 0x00002000L
57 #define WS_EX_LTRREADING 0x00000000L
58 #define WS_EX_LEFTSCROLLBAR 0x00004000L
59 #define WS_EX_RIGHTSCROLLBAR 0x00000000L
60
61 #define WS_EX_CONTROLPARENT 0x00010000L
62 #define WS_EX_STATICEDGE 0x00020000L
63 #define WS_EX_APPWINDOW 0x00040000L
64
65
66 #define WS_EX_OVERLAPPEDWINDOW (WS_EX_WINDOWEDGE | WS_EX_CLIENTEDGE)
67 #define WS_EX_PALETTEWINDOW (WS_EX_WINDOWEDGE | WS_EX_TOOLWINDOW | WS_EX_TOPMOST)
68
69
70 /*
71 * Flags for TrackPopupMenu
72 */
73 #define TPM_LEFTBUTTON 0x0000L
74 #define TPM_RIGHTBUTTON 0x0002L
75 #define TPM_LEFTALIGN 0x0000L
76 #define TPM_CENTERALIGN 0x0004L
77 #define TPM_RIGHTALIGN 0x0008L
78
79 #define TPM_TOPALIGN 0x0000L
80 #define TPM_VCENTERALIGN 0x0010L
81 #define TPM_BOTTOMALIGN 0x0020L
82
83 #define TPM_HORIZONTAL 0x0000L /* Horz alignment matters more */
84 #define TPM_VERTICAL 0x0040L /* Vert alignment matters more */
85 #define TPM_NONOTIFY 0x0080L /* Don't send any notification msgs */
86 #define TPM_RETURNCMD 0x0100L
87
88 #define TPM_RECURSE 0x0001L
89
90
91
92 ////////////////////////////////////////////////////////
93 // Missing declarations into WinCE include files (MCK)
94 ////////////////////////////////////////////////////////
95
96 HCURSOR WINAPI
97 DestroyCursor(HCURSOR hCursor);
98
99 HCURSOR WINAPI
100 CreateCursor(HINSTANCE hInst,
101 int xHotSpot,
102 int yHotSpot,
103 int nWidth,
104 int nHeight,
105 CONST VOID *pvANDPlane,
106 CONST VOID *pvXORPlane );
107
108 ////////////////////////////////////////////////////////
109
110 int WINAPI
111 GetScrollPos(
112 HWND hWnd,
113 int nBar);
114
115 bool WINAPI
116 GetScrollRange(
117 HWND hWnd,
118 int nBar,
119 LPINT lpMinPos,
120 LPINT lpMaxPos);
121
122 bool WINAPI
123 ScrollWindow(
124 HWND hWnd,
125 int XAmount,
126 int YAmount,
127 CONST RECT *lpRect,
128 CONST RECT *lpClipRect);
129
130 LRESULT WINAPI
131 CallWindowProcA(
132 WNDPROC lpPrevWndFunc,
133 HWND hWnd,
134 UINT Msg,
135 WPARAM wParam,
136 LPARAM lParam);
137
138 LRESULT WINAPI
139 CallWindowProcW(
140 WNDPROC lpPrevWndFunc,
141 HWND hWnd,
142 UINT Msg,
143 WPARAM wParam,
144 LPARAM lParam);
145
146 #ifdef UNICODE
147 #define CallWindowProc CallWindowProcW
148 #else
149 #define CallWindowProc CallWindowProcA
150 #endif // !UNICODE
151
152 #endif
153
154 ////////////////////////////////////////////////////////
155
156 #endif // _WX_CE_MISSING_H_