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.
24 #define FlatSB_GetInfoPtr(wndPtr) ((FLATSB_INFO*)wndPtr->wExtra[0])
28 FlatSB_EnableScrollBar(HWND hwnd
, INT dummy
, UINT dummy2
)
30 FIXME(commctrl
,"stub\n");
35 FlatSB_ShowScrollBar(HWND hwnd
, INT code
, BOOL flag
)
37 FIXME(commctrl
,"stub\n");
42 FlatSB_GetScrollRange(HWND hwnd
, INT code
, LPINT min
, LPINT max
)
44 FIXME(commctrl
,"stub\n");
49 FlatSB_GetScrollInfo(HWND hwnd
, INT code
, LPSCROLLINFO info
)
51 FIXME(commctrl
,"stub\n");
56 FlatSB_GetScrollPos(HWND hwnd
, INT code
)
58 FIXME(commctrl
,"stub\n");
63 FlatSB_GetScrollProp(HWND hwnd
, INT propIndex
, LPINT prop
)
65 FIXME(commctrl
,"stub\n");
71 FlatSB_SetScrollPos(HWND hwnd
, INT code
, INT pos
, BOOL fRedraw
)
73 FIXME(commctrl
,"stub\n");
78 FlatSB_SetScrollInfo(HWND hwnd
, INT code
, LPSCROLLINFO info
, BOOL fRedraw
)
80 FIXME(commctrl
,"stub\n");
85 FlatSB_SetScrollRange(HWND hwnd
, INT code
, INT min
, INT max
, BOOL fRedraw
)
87 FIXME(commctrl
,"stub\n");
92 FlatSB_SetScrollProp(HWND hwnd
, UINT index
, INT newValue
, BOOL flag
)
94 FIXME(commctrl
,"stub\n");
99 BOOL WINAPI
InitializeFlatSB(HWND hwnd
)
101 FIXME(commctrl
,"stub\n");
105 HRESULT WINAPI
UninitializeFlatSB(HWND hwnd
)
107 FIXME(commctrl
,"stub\n");
114 FlatSB_Create (WND
*wndPtr
, WPARAM wParam
, LPARAM lParam
)
121 FlatSB_Destroy (WND
*wndPtr
, WPARAM wParam
, LPARAM lParam
)
130 FlatSB_WindowProc (HWND hwnd
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
)
132 WND
*wndPtr
= WIN_FindWndPtr(hwnd
);
138 return FlatSB_Create (wndPtr
, wParam
, lParam
);
141 return FlatSB_Destroy (wndPtr
, wParam
, lParam
);
145 ERR (datetime
, "unknown msg %04x wp=%08x lp=%08lx\n",
146 uMsg
, wParam
, lParam
);
147 return DefWindowProcA (hwnd
, uMsg
, wParam
, lParam
);
154 FLATSB_Register (VOID
)
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
);
174 FLATSB_Unregister (VOID
)
176 if (GlobalFindAtomA (FLATSB_CLASSA
))
177 UnregisterClassA (FLATSB_CLASSA
, (HINSTANCE
)NULL
);