Large-scale renaming of all Win32 functions and types to use the
[wine/hacks.git] / dlls / comctl32 / flatsb.c
blobad484a3d2e96d3ddc81bad0b0212d3c56eb946f8
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 "commctrl.h"
19 #include "flatsb.h"
20 #include "win.h"
21 #include "debug.h"
24 #define FlatSB_GetInfoPtr(wndPtr) ((FLATSB_INFO*)wndPtr->wExtra[0])
27 BOOL WINAPI
28 FlatSB_EnableScrollBar(HWND hwnd, INT dummy, UINT dummy2)
30 FIXME(commctrl,"stub\n");
31 return 0;
34 BOOL WINAPI
35 FlatSB_ShowScrollBar(HWND hwnd, INT code, BOOL flag)
37 FIXME(commctrl,"stub\n");
38 return 0;
41 BOOL WINAPI
42 FlatSB_GetScrollRange(HWND hwnd, INT code, LPINT min, LPINT max)
44 FIXME(commctrl,"stub\n");
45 return 0;
48 BOOL WINAPI
49 FlatSB_GetScrollInfo(HWND hwnd, INT code, LPSCROLLINFO info)
51 FIXME(commctrl,"stub\n");
52 return 0;
55 INT WINAPI
56 FlatSB_GetScrollPos(HWND hwnd, INT code)
58 FIXME(commctrl,"stub\n");
59 return 0;
62 BOOL WINAPI
63 FlatSB_GetScrollProp(HWND hwnd, INT propIndex, LPINT prop)
65 FIXME(commctrl,"stub\n");
66 return 0;
70 INT WINAPI
71 FlatSB_SetScrollPos(HWND hwnd, INT code, INT pos, BOOL fRedraw)
73 FIXME(commctrl,"stub\n");
74 return 0;
77 INT WINAPI
78 FlatSB_SetScrollInfo(HWND hwnd, INT code, LPSCROLLINFO info, BOOL fRedraw)
80 FIXME(commctrl,"stub\n");
81 return 0;
84 INT WINAPI
85 FlatSB_SetScrollRange(HWND hwnd, INT code, INT min, INT max, BOOL fRedraw)
87 FIXME(commctrl,"stub\n");
88 return 0;
91 BOOL WINAPI
92 FlatSB_SetScrollProp(HWND hwnd, UINT index, INT newValue, BOOL flag)
94 FIXME(commctrl,"stub\n");
95 return 0;
99 BOOL WINAPI InitializeFlatSB(HWND hwnd)
101 FIXME(commctrl,"stub\n");
102 return 0;
105 HRESULT WINAPI UninitializeFlatSB(HWND hwnd)
107 FIXME(commctrl,"stub\n");
108 return 0;
113 static LRESULT
114 FlatSB_Create (WND *wndPtr, WPARAM wParam, LPARAM lParam)
116 return 0;
120 static LRESULT
121 FlatSB_Destroy (WND *wndPtr, WPARAM wParam, LPARAM lParam)
123 return 0;
129 LRESULT WINAPI
130 FlatSB_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
132 WND *wndPtr = WIN_FindWndPtr(hwnd);
134 switch (uMsg)
137 case WM_CREATE:
138 return FlatSB_Create (wndPtr, wParam, lParam);
140 case WM_DESTROY:
141 return FlatSB_Destroy (wndPtr, wParam, lParam);
143 default:
144 if (uMsg >= WM_USER)
145 ERR (datetime, "unknown msg %04x wp=%08x lp=%08lx\n",
146 uMsg, wParam, lParam);
147 return DefWindowProcA (hwnd, uMsg, wParam, lParam);
149 return 0;
153 VOID
154 FLATSB_Register (VOID)
156 WNDCLASSA wndClass;
158 if (GlobalFindAtomA (FLATSB_CLASSA)) return;
160 ZeroMemory (&wndClass, sizeof(WNDCLASSA));
161 wndClass.style = CS_GLOBALCLASS;
162 wndClass.lpfnWndProc = (WNDPROC)FlatSB_WindowProc;
163 wndClass.cbClsExtra = 0;
164 wndClass.cbWndExtra = sizeof(FLATSB_INFO *);
165 wndClass.hCursor = LoadCursorA (0, IDC_ARROWA);
166 wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
167 wndClass.lpszClassName = FLATSB_CLASSA;
169 RegisterClassA (&wndClass);
173 VOID
174 FLATSB_Unregister (VOID)
176 if (GlobalFindAtomA (FLATSB_CLASSA))
177 UnregisterClassA (FLATSB_CLASSA, (HINSTANCE)NULL);