Replaced direct access to the WND structure by corresponding calls to
[wine/multimedia.git] / dlls / comctl32 / flatsb.c
blob02105a833e4942d7be7273bd801d05cb19c5b635
1 /*
2 * Flat Scrollbar control
4 * Copyright 1998, 1999 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(hwnd) ((FLATSB_INFO*)GetWindowLongA (hwnd, 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 (HWND hwnd, WPARAM wParam, LPARAM lParam)
116 return 0;
120 static LRESULT
121 FlatSB_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
123 return 0;
129 LRESULT WINAPI
130 FlatSB_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
132 switch (uMsg)
135 case WM_CREATE:
136 return FlatSB_Create (hwnd, wParam, lParam);
138 case WM_DESTROY:
139 return FlatSB_Destroy (hwnd, wParam, lParam);
141 default:
142 if (uMsg >= WM_USER)
143 ERR (datetime, "unknown msg %04x wp=%08x lp=%08lx\n",
144 uMsg, wParam, lParam);
145 return DefWindowProcA (hwnd, uMsg, wParam, lParam);
147 return 0;
151 VOID
152 FLATSB_Register (VOID)
154 WNDCLASSA wndClass;
156 if (GlobalFindAtomA (FLATSB_CLASSA)) return;
158 ZeroMemory (&wndClass, sizeof(WNDCLASSA));
159 wndClass.style = CS_GLOBALCLASS;
160 wndClass.lpfnWndProc = (WNDPROC)FlatSB_WindowProc;
161 wndClass.cbClsExtra = 0;
162 wndClass.cbWndExtra = sizeof(FLATSB_INFO *);
163 wndClass.hCursor = LoadCursorA (0, IDC_ARROWA);
164 wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
165 wndClass.lpszClassName = FLATSB_CLASSA;
167 RegisterClassA (&wndClass);
171 VOID
172 FLATSB_Unregister (VOID)
174 if (GlobalFindAtomA (FLATSB_CLASSA))
175 UnregisterClassA (FLATSB_CLASSA, (HINSTANCE)NULL);