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