36#define SCROLL_MIN_THUMB 6
39#define SCROLL_MIN_RECT 4
59 *thumbpos = *thumbsize = 0;
61 *thumbpos = *thumbsize = 0;
69 if (
size < *thumbsize)
70 *thumbpos = *thumbsize = 0;
89 unsigned int offset,
size, upsize, downsize, thumbpos, thumbsize;
99 WARN(
"Could not get up arrow size.\n");
105 WARN(
"Could not get down arrow size.\n");
114 WARN(
"Could not get left arrow size.\n");
120 WARN(
"Could not get right arrow size.\n");
126 if (
pt.x < 0 ||
pt.x >
r.right ||
pt.y < 0 ||
pt.y >
r.bottom)
141 WARN(
"GetScrollInfo failed.\n");
147 if (
offset < upsize + thumbpos)
149 else if (
offset < upsize + thumbpos + thumbsize)
161 unsigned int size, upsize, downsize;
175 WARN(
"Could not get up arrow size.\n");
181 WARN(
"Could not get down arrow size.\n");
189 WARN(
"Could not get left arrow size.\n");
195 WARN(
"Could not get right arrow size.\n");
213 partrect.
top = partrect.
bottom - downsize;
215 partrect.
left = partrect.
right - downsize;
217 unsigned int thumbpos, thumbsize;
223 WARN(
"GetScrollInfo failed.\n");
231 partrect.
top =
r.top + upsize;
232 partrect.
bottom = partrect.
top + thumbpos;
234 partrect.
left =
r.left + upsize;
235 partrect.
right = partrect.
left + thumbpos;
239 partrect.
top =
r.top + upsize + thumbpos;
240 partrect.
bottom = partrect.
top + thumbsize;
242 partrect.
left =
r.left + upsize + thumbpos;
243 partrect.
right = partrect.
left + thumbsize;
247 partrect.
top =
r.top + upsize + thumbpos + thumbsize;
248 partrect.
bottom =
r.bottom - downsize;
250 partrect.
left =
r.left + upsize + thumbpos + thumbsize;
251 partrect.
right =
r.right - downsize;
339 unsigned int thumbpos, thumbsize;
340 int uppertrackstate, lowertrackstate, thumbstate;
341 RECT partrect, trackrect;
373 SIZE upsize, downsize;
374 int uparrowstate, downarrowstate;
392 WARN(
"Could not get up arrow size.\n");
397 WARN(
"Could not get down arrow size.\n");
419 partrect.
top = trackrect.
top;
420 partrect.
bottom = partrect.
top + thumbpos;
426 partrect.
top = trackrect.
top + thumbpos;
427 partrect.
bottom = partrect.
top + thumbsize;
435 if (grippersize.
cy <= (thumbsize -
margins.cyTopHeight -
margins.cyBottomHeight))
441 if (thumbpos + thumbsize < trackrect.
bottom - trackrect.
top) {
443 partrect.
top = trackrect.
top + thumbsize + thumbpos;
448 SIZE leftsize, rightsize;
449 int leftarrowstate, rightarrowstate;
467 WARN(
"Could not get left arrow size.\n");
472 WARN(
"Could not get right arrow size.\n");
495 partrect.
right = partrect.
left + thumbpos;
501 partrect.
left = trackrect.
left + thumbpos;
502 partrect.
right = partrect.
left + thumbsize;
510 if (grippersize.
cx <= (thumbsize -
margins.cxLeftWidth -
margins.cxRightWidth))
516 if (thumbpos + thumbsize < trackrect.
right - trackrect.
left) {
518 partrect.
left = trackrect.
left + thumbsize + thumbpos;
550 case WM_THEMECHANGED:
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
LRESULT THEMING_CallOriginalClass(HWND, UINT, WPARAM, LPARAM) DECLSPEC_HIDDEN
HRESULT WINAPI DrawThemeBackground(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, const RECT *pClipRect)
HRESULT WINAPI GetThemePartSize(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, RECT *prc, THEMESIZE eSize, SIZE *psz)
HRESULT WINAPI GetThemeMargins(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, RECT *prc, MARGINS *pMargins)
HTHEME WINAPI OpenThemeData(HWND hwnd, LPCWSTR classlist)
HTHEME WINAPI GetWindowTheme(HWND hwnd)
HRESULT WINAPI CloseThemeData(HTHEME hTheme)
unsigned short(__cdecl typeof(TIFFCurrentDirectory))(struct tiff *)
GLdouble GLdouble GLdouble r
static HTHEME(WINAPI *pOpenThemeDataEx)(HWND
INT WINAPI MulDiv(INT nNumber, INT nNumerator, INT nDenominator)
_In_ SUBCLASSPROC _In_ UINT_PTR _In_ DWORD_PTR dwRefData
#define TMT_CONTENTMARGINS
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
LONG WINAPI GetWindowLongW(_In_ HWND, _In_ int)
BOOL WINAPI TrackMouseEvent(_Inout_ LPTRACKMOUSEEVENT)
#define WM_SYSCOLORCHANGE
#define SBS_SIZEBOXTOPLEFTALIGN
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
BOOL WINAPI IsWindowEnabled(_In_ HWND)
BOOL WINAPI OffsetRect(_Inout_ LPRECT, _In_ int, _In_ int)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
BOOL WINAPI GetScrollInfo(_In_ HWND, _In_ int, _Inout_ LPSCROLLINFO)
BOOL WINAPI GetScrollBarInfo(_In_ HWND, _In_ LONG, _Inout_ PSCROLLBARINFO)
int WINAPI GetSystemMetrics(_In_ int)