Large-scale renaming of all Win32 functions and types to use the
[wine/multimedia.git] / dlls / comctl32 / propsheet.c
blob45e6d2e1aa0b8300c473e8f27dfde4a50cf6590f
1 /*
2 * Property Sheets
4 * Copyright 1998 Francis Beaudet
6 * TODO:
7 * - All the functions are simply stubs
9 */
11 #include "commctrl.h"
12 #include "prsht.h"
13 #include "propsheet.h"
14 #include "win.h"
15 #include "debug.h"
18 LRESULT WINAPI
19 PROPSHEET_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
27 /*****************************************************************
28 * PropertySheet32A (COMCTL32.84)(COMCTL32.83)
30 INT WINAPI PropertySheetA(LPCPROPSHEETHEADERA lppsh)
32 HWND hwnd;
34 FIXME(propsheet, "(%p): stub\n", lppsh);
36 if (lppsh->dwFlags & PSH_MODELESS) {
37 hwnd = CreateDialogParamA ( lppsh->hInstance, WC_PROPSHEETA,
38 lppsh->hwndParent, (DLGPROC)PROPSHEET_WindowProc,
39 (LPARAM) lppsh );
40 ShowWindow (hwnd, TRUE);
41 } else {
42 hwnd = DialogBoxParamA ( lppsh->hInstance, WC_PROPSHEETA,
43 lppsh->hwndParent, (DLGPROC)PROPSHEET_WindowProc,
44 (LPARAM) lppsh );
46 return hwnd;
49 /*****************************************************************
50 * PropertySheet32W (COMCTL32.85)
52 INT WINAPI PropertySheetW(LPCPROPSHEETHEADERW propertySheetHeader)
54 FIXME(propsheet, "(%p): stub\n", propertySheetHeader);
56 return -1;
63 /*****************************************************************
64 * CreatePropertySheetPage32A (COMCTL32.19)(COMCTL32.18)
66 HPROPSHEETPAGE WINAPI CreatePropertySheetPageA(LPCPROPSHEETPAGEA lpPropSheetPage)
68 FIXME(propsheet, "(%p): stub\n", lpPropSheetPage);
70 return 0;
73 /*****************************************************************
74 * CreatePropertySheetPage32W (COMCTL32.20)
76 HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW lpPropSheetPage)
78 FIXME(propsheet, "(%p): stub\n", lpPropSheetPage);
80 return 0;
83 /*****************************************************************
84 * DestroyPropertySheetPage32 (COMCTL32.24)
86 BOOL WINAPI DestroyPropertySheetPage(HPROPSHEETPAGE hPropPage)
88 FIXME(propsheet, "(0x%08lx): stub\n", (DWORD)hPropPage);
89 return FALSE;
94 LRESULT WINAPI
95 PROPSHEET_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
97 /* WND *wndPtr = WIN_FindWndPtr(hwnd); */
99 switch (uMsg) {
100 case PSM_SETCURSEL:
101 FIXME (propsheet, "Unimplemented msg PSM_SETCURSEL\n");
102 return 0;
103 case PSM_REMOVEPAGE:
104 FIXME (propsheet, "Unimplemented msg PSM_REMOVEPAGE\n");
105 return 0;
106 case PSM_ADDPAGE:
107 FIXME (propsheet, "Unimplemented msg PSM_ADDPAGE\n");
108 return 0;
109 case PSM_CHANGED:
110 FIXME (propsheet, "Unimplemented msg PSM_CHANGED\n");
111 return 0;
112 case PSM_RESTARTWINDOWS:
113 FIXME (propsheet, "Unimplemented msg PSM_RESTARTWINDOWS\n");
114 return 0;
115 case PSM_REBOOTSYSTEM:
116 FIXME (propsheet, "Unimplemented msg PSM_REBOOTSYSTEM\n");
117 return 0;
118 case PSM_CANCELTOCLOSE:
119 FIXME (propsheet, "Unimplemented msg PSM_CANCELTOCLOSE\n");
120 return 0;
121 case PSM_QUERYSIBLINGS:
122 FIXME (propsheet, "Unimplemented msg PSM_QUERYSIBLINGS\n");
123 return 0;
124 case PSM_UNCHANGED:
125 FIXME (propsheet, "Unimplemented msg PSM_UNCHANGED\n");
126 return 0;
127 case PSM_APPLY:
128 FIXME (propsheet, "Unimplemented msg PSM_APPLY\n");
129 return 0;
130 case PSM_SETTITLEA:
131 FIXME (propsheet, "Unimplemented msg PSM_SETTITLE32A\n");
132 return 0;
133 case PSM_SETTITLEW:
134 FIXME (propsheet, "Unimplemented msg PSM_SETTITLE32W\n");
135 return 0;
136 case PSM_SETWIZBUTTONS:
137 FIXME (propsheet, "Unimplemented msg PSM_SETWIZBUTTONS\n");
138 return 0;
139 case PSM_PRESSBUTTON:
140 FIXME (propsheet, "Unimplemented msg PSM_PRESSBUTTON\n");
141 return 0;
142 case PSM_SETCURSELID:
143 FIXME (propsheet, "Unimplemented msg PSM_SETCURSELID\n");
144 return 0;
145 case PSM_SETFINISHTEXTA:
146 FIXME (propsheet, "Unimplemented msg PSM_SETFINISHTEXT32A\n");
147 return 0;
148 case PSM_SETFINISHTEXTW:
149 FIXME (propsheet, "Unimplemented msg PSM_SETFINISHTEXT32W\n");
150 return 0;
151 case PSM_GETTABCONTROL:
152 FIXME (propsheet, "Unimplemented msg PSM_GETTABCONTROL\n");
153 return 0;
154 case PSM_ISDIALOGMESSAGE:
155 FIXME (propsheet, "Unimplemented msg PSM_ISDIALOGMESSAGE\n");
156 return 0;
157 case PSM_GETCURRENTPAGEHWND:
158 FIXME (propsheet, "Unimplemented msg PSM_GETCURRENTPAGEHWND\n");
159 return 0;
161 default:
162 if (uMsg >= WM_USER)
163 ERR (propsheet, "unknown msg %04x wp=%08x lp=%08lx\n",
164 uMsg, wParam, lParam);
165 return DefWindowProcA (hwnd, uMsg, wParam, lParam);
170 VOID
171 PROPSHEET_Register (VOID)
173 WNDCLASSA wndClass;
175 if (GlobalFindAtomA (WC_PROPSHEETA)) return;
177 ZeroMemory (&wndClass, sizeof(WNDCLASSA));
178 wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS | CS_SAVEBITS;
179 wndClass.lpfnWndProc = (WNDPROC)PROPSHEET_WindowProc;
180 wndClass.cbClsExtra = 0;
181 wndClass.cbWndExtra = sizeof(PROPSHEET_INFO *);
182 wndClass.hCursor = LoadCursorA (0, IDC_ARROWA);
183 wndClass.hbrBackground = 0;
184 wndClass.lpszClassName = WC_PROPSHEETA;
186 RegisterClassA (&wndClass);
190 VOID
191 PROPSHEET_UnRegister (VOID)
193 if (GlobalFindAtomA (WC_PROPSHEETA))
194 UnregisterClassA (WC_PROPSHEETA, (HINSTANCE)NULL);