64 scrollbarWidth = lpRect->
right - lpRect->
left;
65 rect.left -= scrollbarWidth*8;
66 rect.right += scrollbarWidth*8;
67 rect.top -= scrollbarWidth*2;
68 rect.bottom += scrollbarWidth*2;
72 scrollbarWidth = lpRect->
bottom - lpRect->
top;
73 rect.left -= scrollbarWidth*2;
74 rect.right += scrollbarWidth*2;
75 rect.top -= scrollbarWidth*8;
76 rect.bottom += scrollbarWidth*8;
129 if (
r->right <=
r->left ||
r->bottom <=
r->top)
134 else if (htHot == htCurrent)
136 else if (htDown == htCurrent)
148 BOOL vertical,
int htDown,
int htHot )
184 int htDown,
int htHot )
206 if (
r.right <=
r.left ||
r.bottom <=
r.top)
230 r.bottom = rcPart.
top;
238 rcPart.
right = thumbPos;
245 r.right = rcPart.
left;
345 if(
pt.y < lpRect->
top )
379 if ((
pixels -= thumbSize) <= 0)
return psi->
nMin;
398 static UINT trackThumbPos;
400 static INT lastClickPos;
402 static INT lastMousePos;
405 HWND hwndOwner, hwndCtl;
441 lastMousePos = lastClickPos;
606 trackThumbPos + lastMousePos - lastClickPos );
620 trackThumbPos + lastMousePos - lastClickPos );
HRESULT WINAPI DrawThemeBackground(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, const RECT *pClipRect)
void ThemeCleanupDrawContext(PDRAW_CONTEXT pcontext)
void ThemeInitDrawContext(PDRAW_CONTEXT pcontext, HWND hWnd, HRGN hRgn)
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
GLdouble GLdouble GLdouble r
INT WINAPI MulDiv(INT nNumber, INT nNumerator, INT nDenominator)
enum SCROLL_HITTEST SCROLL_trackHitTest
BOOL SCROLL_trackVertical
PWND_DATA ThemeGetWndData(HWND hWnd)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
#define SCROLL_REPEAT_DELAY
#define SCROLL_ARROW_THUMB_OVERLAP
#define SCROLL_FIRST_DELAY
HWND WINAPI GetFocus(void)
HWND WINAPI SetCapture(_In_ HWND hWnd)
BOOL WINAPI IsWindow(_In_opt_ HWND)
BOOL WINAPI ShowCaret(_In_opt_ HWND)
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI ReleaseCapture(void)
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI IsRectEmpty(_In_ LPCRECT)
HWND WINAPI GetCapture(void)
BOOL WINAPI CallMsgFilterW(_In_ LPMSG, _In_ INT)
BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT)
BOOL WINAPI PtInRect(_In_ LPCRECT, _In_ POINT)
UINT_PTR WINAPI SetSystemTimer(HWND, UINT_PTR, UINT, TIMERPROC)
BOOL WINAPI KillSystemTimer(HWND, UINT_PTR)
#define STATE_SYSTEM_UNAVAILABLE
HWND WINAPI GetParent(_In_ HWND)
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)
BOOL WINAPI OffsetRect(_Inout_ LPRECT, _In_ int, _In_ int)
BOOL WINAPI GetScrollInfo(_In_ HWND, _In_ int, _Inout_ LPSCROLLINFO)
BOOL WINAPI HideCaret(_In_opt_ HWND)
BOOL WINAPI GetScrollBarInfo(_In_ HWND, _In_ LONG, _Inout_ PSCROLLBARINFO)
int WINAPI GetSystemMetrics(_In_ int)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)