Fixed a couple of faulty names used in wine and typos so that it will
[wine/testsucceed.git] / dlls / comctl32 / flatsb.c
blob1813ff0fb41c4b09383b164a24eff85e9037b4c9
1 /*
2 * Flat Scrollbar control
4 * Copyright 1998 Eric Kohl
5 * Copyright 1998 Alex Priem
7 * NOTES
8 * This is just a dummy control. An author is needed! Any volunteers?
9 * I will only improve this control once in a while.
10 * Eric <ekohl@abo.rhein-zeitung.de>
12 * TODO:
13 * - All messages.
14 * - All notifications.
18 #include "windows.h"
19 #include "commctrl.h"
20 #include "flatsb.h"
21 #include "win.h"
22 #include "debug.h"
25 #define FlatSB_GetInfoPtr(wndPtr) ((FLATSB_INFO*)wndPtr->wExtra[0])
28 BOOL32 WINAPI
29 FlatSB_EnableScrollBar(HWND32 hwnd, INT32 dummy, UINT32 dummy2)
31 FIXME(commctrl,"stub\n");
32 return 0;
35 BOOL32 WINAPI
36 FlatSB_ShowScrollBar(HWND32 hwnd, INT32 code, BOOL32 flag)
38 FIXME(commctrl,"stub\n");
39 return 0;
42 BOOL32 WINAPI
43 FlatSB_GetScrollRange(HWND32 hwnd, INT32 code, LPINT32 min, LPINT32 max)
45 FIXME(commctrl,"stub\n");
46 return 0;
49 BOOL32 WINAPI
50 FlatSB_GetScrollInfo(HWND32 hwnd, INT32 code, LPSCROLLINFO info)
52 FIXME(commctrl,"stub\n");
53 return 0;
56 INT32 WINAPI
57 FlatSB_GetScrollPos(HWND32 hwnd, INT32 code)
59 FIXME(commctrl,"stub\n");
60 return 0;
63 BOOL32 WINAPI
64 FlatSB_GetScrollProp(HWND32 hwnd, INT32 propIndex, LPINT32 prop)
66 FIXME(commctrl,"stub\n");
67 return 0;
71 INT32 WINAPI
72 FlatSB_SetScrollPos(HWND32 hwnd, INT32 code, INT32 pos, BOOL32 fRedraw)
74 FIXME(commctrl,"stub\n");
75 return 0;
78 INT32 WINAPI
79 FlatSB_SetScrollInfo(HWND32 hwnd, INT32 code, LPSCROLLINFO info, BOOL32 fRedraw)
81 FIXME(commctrl,"stub\n");
82 return 0;
85 INT32 WINAPI
86 FlatSB_SetScrollRange(HWND32 hwnd, INT32 code, INT32 min, INT32 max, BOOL32 fRedraw)
88 FIXME(commctrl,"stub\n");
89 return 0;
92 BOOL32 WINAPI
93 FlatSB_SetScrollProp(HWND32 hwnd, UINT32 index, INT32 newValue, BOOL32 flag)
95 FIXME(commctrl,"stub\n");
96 return 0;
100 BOOL32 WINAPI InitializeFlatSB(HWND32 hwnd)
102 FIXME(commctrl,"stub\n");
103 return 0;
106 HRESULT WINAPI UninitializeFlatSB(HWND32 hwnd)
108 FIXME(commctrl,"stub\n");
109 return 0;
114 static LRESULT
115 FlatSB_Create (WND *wndPtr, WPARAM32 wParam, LPARAM lParam)
117 return 0;
121 static LRESULT
122 FlatSB_Destroy (WND *wndPtr, WPARAM32 wParam, LPARAM lParam)
124 return 0;
130 LRESULT WINAPI
131 FlatSB_WindowProc (HWND32 hwnd, UINT32 uMsg, WPARAM32 wParam, LPARAM lParam)
133 WND *wndPtr = WIN_FindWndPtr(hwnd);
135 switch (uMsg)
138 case WM_CREATE:
139 return FlatSB_Create (wndPtr, wParam, lParam);
141 case WM_DESTROY:
142 return FlatSB_Destroy (wndPtr, wParam, lParam);
144 default:
145 if (uMsg >= WM_USER)
146 ERR (datetime, "unknown msg %04x wp=%08x lp=%08lx\n",
147 uMsg, wParam, lParam);
148 return DefWindowProc32A (hwnd, uMsg, wParam, lParam);
150 return 0;
154 VOID
155 FLATSB_Register (VOID)
157 WNDCLASS32A wndClass;
159 if (GlobalFindAtom32A (FLATSB_CLASS32A)) return;
161 ZeroMemory (&wndClass, sizeof(WNDCLASS32A));
162 wndClass.style = CS_GLOBALCLASS;
163 wndClass.lpfnWndProc = (WNDPROC32)FlatSB_WindowProc;
164 wndClass.cbClsExtra = 0;
165 wndClass.cbWndExtra = sizeof(FLATSB_INFO *);
166 wndClass.hCursor = LoadCursor32A (0, IDC_ARROW32A);
167 wndClass.hbrBackground = (HBRUSH32)(COLOR_WINDOW + 1);
168 wndClass.lpszClassName = FLATSB_CLASS32A;
170 RegisterClass32A (&wndClass);
174 VOID
175 FLATSB_Unregister (VOID)
177 if (GlobalFindAtom32A (FLATSB_CLASS32A))
178 UnregisterClass32A (FLATSB_CLASS32A, (HINSTANCE32)NULL);