2 * Flat Scrollbar control
4 * Copyright 1998 Eric Kohl
5 * Copyright 1998 Alex Priem
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>
14 * - All notifications.
25 #define FlatSB_GetInfoPtr(wndPtr) ((FLATSB_INFO*)wndPtr->wExtra[0])
29 FlatSB_EnableScrollBar(HWND32 hwnd
, INT32 dummy
, UINT32 dummy2
)
31 FIXME(commctrl
,"stub\n");
36 FlatSB_ShowScrollBar(HWND32 hwnd
, INT32 code
, BOOL32 flag
)
38 FIXME(commctrl
,"stub\n");
43 FlatSB_GetScrollRange(HWND32 hwnd
, INT32 code
, LPINT32 min
, LPINT32 max
)
45 FIXME(commctrl
,"stub\n");
50 FlatSB_GetScrollInfo(HWND32 hwnd
, INT32 code
, LPSCROLLINFO info
)
52 FIXME(commctrl
,"stub\n");
57 FlatSB_GetScrollPos(HWND32 hwnd
, INT32 code
)
59 FIXME(commctrl
,"stub\n");
64 FlatSB_GetScrollProp(HWND32 hwnd
, INT32 propIndex
, LPINT32 prop
)
66 FIXME(commctrl
,"stub\n");
72 FlatSB_SetScrollPos(HWND32 hwnd
, INT32 code
, INT32 pos
, BOOL32 fRedraw
)
74 FIXME(commctrl
,"stub\n");
79 FlatSB_SetScrollInfo(HWND32 hwnd
, INT32 code
, LPSCROLLINFO info
, BOOL32 fRedraw
)
81 FIXME(commctrl
,"stub\n");
86 FlatSB_SetScrollRange(HWND32 hwnd
, INT32 code
, INT32 min
, INT32 max
, BOOL32 fRedraw
)
88 FIXME(commctrl
,"stub\n");
93 FlatSB_SetScrollProp(HWND32 hwnd
, UINT32 index
, INT32 newValue
, BOOL32 flag
)
95 FIXME(commctrl
,"stub\n");
100 BOOL32 WINAPI
InitializeFlatSB(HWND32 hwnd
)
102 FIXME(commctrl
,"stub\n");
106 HRESULT WINAPI
UninitializeFlatSB(HWND32 hwnd
)
108 FIXME(commctrl
,"stub\n");
115 FlatSB_Create (WND
*wndPtr
, WPARAM32 wParam
, LPARAM lParam
)
122 FlatSB_Destroy (WND
*wndPtr
, WPARAM32 wParam
, LPARAM lParam
)
131 FlatSB_WindowProc (HWND32 hwnd
, UINT32 uMsg
, WPARAM32 wParam
, LPARAM lParam
)
133 WND
*wndPtr
= WIN_FindWndPtr(hwnd
);
139 return FlatSB_Create (wndPtr
, wParam
, lParam
);
142 return FlatSB_Destroy (wndPtr
, wParam
, lParam
);
146 ERR (datetime
, "unknown msg %04x wp=%08x lp=%08lx\n",
147 uMsg
, wParam
, lParam
);
148 return DefWindowProc32A (hwnd
, uMsg
, wParam
, lParam
);
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
);
175 FLATSB_Unregister (VOID
)
177 if (GlobalFindAtom32A (FLATSB_CLASS32A
))
178 UnregisterClass32A (FLATSB_CLASS32A
, (HINSTANCE32
)NULL
);