Fixed a couple of faulty names used in wine and typos so that it will
[wine/testsucceed.git] / dlls / comctl32 / propsheet.c
blob548f1628a72c0ac13be5819c3bfab8b3e697129a
1 /*
2 * Property Sheets
4 * Copyright 1998 Francis Beaudet
6 * TODO:
7 * - All the functions are simply stubs
9 */
11 #include "windows.h"
12 #include "commctrl.h"
13 #include "prsht.h"
14 #include "propsheet.h"
15 #include "win.h"
16 #include "debug.h"
19 LRESULT WINAPI
20 PROPSHEET_WindowProc (HWND32 hwnd, UINT32 uMsg, WPARAM32 wParam, LPARAM lParam);
28 /*****************************************************************
29 * PropertySheet32A (COMCTL32.84)(COMCTL32.83)
31 INT32 WINAPI PropertySheet32A(LPCPROPSHEETHEADER32A lppsh)
33 HWND32 hwnd;
35 FIXME(propsheet, "(%p): stub\n", lppsh);
37 if (lppsh->dwFlags & PSH_MODELESS) {
38 hwnd = CreateDialogParam32A ( lppsh->hInstance, WC_PROPSHEET32A,
39 lppsh->hwndParent, (DLGPROC32)PROPSHEET_WindowProc,
40 (LPARAM) lppsh );
41 ShowWindow32 (hwnd, TRUE);
42 } else {
43 hwnd = DialogBoxParam32A ( lppsh->hInstance, WC_PROPSHEET32A,
44 lppsh->hwndParent, (DLGPROC32)PROPSHEET_WindowProc,
45 (LPARAM) lppsh );
47 return hwnd;
50 /*****************************************************************
51 * PropertySheet32W (COMCTL32.85)
53 INT32 WINAPI PropertySheet32W(LPCPROPSHEETHEADER32W propertySheetHeader)
55 FIXME(propsheet, "(%p): stub\n", propertySheetHeader);
57 return -1;
64 /*****************************************************************
65 * CreatePropertySheetPage32A (COMCTL32.19)(COMCTL32.18)
67 HPROPSHEETPAGE WINAPI CreatePropertySheetPage32A(LPCPROPSHEETPAGE32A lpPropSheetPage)
69 FIXME(propsheet, "(%p): stub\n", lpPropSheetPage);
71 return 0;
74 /*****************************************************************
75 * CreatePropertySheetPage32W (COMCTL32.20)
77 HPROPSHEETPAGE WINAPI CreatePropertySheetPage32W(LPCPROPSHEETPAGE32W lpPropSheetPage)
79 FIXME(propsheet, "(%p): stub\n", lpPropSheetPage);
81 return 0;
84 /*****************************************************************
85 * DestroyPropertySheetPage32 (COMCTL32.24)
87 BOOL32 WINAPI DestroyPropertySheetPage32(HPROPSHEETPAGE hPropPage)
89 FIXME(propsheet, "(0x%08lx): stub\n", (DWORD)hPropPage);
90 return FALSE;
95 LRESULT WINAPI
96 PROPSHEET_WindowProc (HWND32 hwnd, UINT32 uMsg, WPARAM32 wParam, LPARAM lParam)
98 /* WND *wndPtr = WIN_FindWndPtr(hwnd); */
100 switch (uMsg) {
101 case PSM_SETCURSEL:
102 FIXME (propsheet, "Unimplemented msg PSM_SETCURSEL\n");
103 return 0;
104 case PSM_REMOVEPAGE:
105 FIXME (propsheet, "Unimplemented msg PSM_REMOVEPAGE\n");
106 return 0;
107 case PSM_ADDPAGE:
108 FIXME (propsheet, "Unimplemented msg PSM_ADDPAGE\n");
109 return 0;
110 case PSM_CHANGED:
111 FIXME (propsheet, "Unimplemented msg PSM_CHANGED\n");
112 return 0;
113 case PSM_RESTARTWINDOWS:
114 FIXME (propsheet, "Unimplemented msg PSM_RESTARTWINDOWS\n");
115 return 0;
116 case PSM_REBOOTSYSTEM:
117 FIXME (propsheet, "Unimplemented msg PSM_REBOOTSYSTEM\n");
118 return 0;
119 case PSM_CANCELTOCLOSE:
120 FIXME (propsheet, "Unimplemented msg PSM_CANCELTOCLOSE\n");
121 return 0;
122 case PSM_QUERYSIBLINGS:
123 FIXME (propsheet, "Unimplemented msg PSM_QUERYSIBLINGS\n");
124 return 0;
125 case PSM_UNCHANGED:
126 FIXME (propsheet, "Unimplemented msg PSM_UNCHANGED\n");
127 return 0;
128 case PSM_APPLY:
129 FIXME (propsheet, "Unimplemented msg PSM_APPLY\n");
130 return 0;
131 case PSM_SETTITLE32A:
132 FIXME (propsheet, "Unimplemented msg PSM_SETTITLE32A\n");
133 return 0;
134 case PSM_SETTITLE32W:
135 FIXME (propsheet, "Unimplemented msg PSM_SETTITLE32W\n");
136 return 0;
137 case PSM_SETWIZBUTTONS:
138 FIXME (propsheet, "Unimplemented msg PSM_SETWIZBUTTONS\n");
139 return 0;
140 case PSM_PRESSBUTTON:
141 FIXME (propsheet, "Unimplemented msg PSM_PRESSBUTTON\n");
142 return 0;
143 case PSM_SETCURSELID:
144 FIXME (propsheet, "Unimplemented msg PSM_SETCURSELID\n");
145 return 0;
146 case PSM_SETFINISHTEXT32A:
147 FIXME (propsheet, "Unimplemented msg PSM_SETFINISHTEXT32A\n");
148 return 0;
149 case PSM_SETFINISHTEXT32W:
150 FIXME (propsheet, "Unimplemented msg PSM_SETFINISHTEXT32W\n");
151 return 0;
152 case PSM_GETTABCONTROL:
153 FIXME (propsheet, "Unimplemented msg PSM_GETTABCONTROL\n");
154 return 0;
155 case PSM_ISDIALOGMESSAGE:
156 FIXME (propsheet, "Unimplemented msg PSM_ISDIALOGMESSAGE\n");
157 return 0;
158 case PSM_GETCURRENTPAGEHWND:
159 FIXME (propsheet, "Unimplemented msg PSM_GETCURRENTPAGEHWND\n");
160 return 0;
162 default:
163 if (uMsg >= WM_USER)
164 ERR (propsheet, "unknown msg %04x wp=%08x lp=%08lx\n",
165 uMsg, wParam, lParam);
166 return DefWindowProc32A (hwnd, uMsg, wParam, lParam);
171 VOID
172 PROPSHEET_Register (VOID)
174 WNDCLASS32A wndClass;
176 if (GlobalFindAtom32A (WC_PROPSHEET32A)) return;
178 ZeroMemory (&wndClass, sizeof(WNDCLASS32A));
179 wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS | CS_SAVEBITS;
180 wndClass.lpfnWndProc = (WNDPROC32)PROPSHEET_WindowProc;
181 wndClass.cbClsExtra = 0;
182 wndClass.cbWndExtra = sizeof(PROPSHEET_INFO *);
183 wndClass.hCursor = LoadCursor32A (0, IDC_ARROW32A);
184 wndClass.hbrBackground = 0;
185 wndClass.lpszClassName = WC_PROPSHEET32A;
187 RegisterClass32A (&wndClass);
191 VOID
192 PROPSHEET_UnRegister (VOID)
194 if (GlobalFindAtom32A (WC_PROPSHEET32A))
195 UnregisterClass32A (WC_PROPSHEET32A, (HINSTANCE32)NULL);