Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c6db778f
Commit
c6db778f
authored
Jul 05, 2008
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Jul 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Simplify functions by shedding off unused parameters.
parent
0f351099
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
trackbar.c
dlls/comctl32/trackbar.c
+18
-18
No files found.
dlls/comctl32/trackbar.c
View file @
c6db778f
...
...
@@ -1462,7 +1462,7 @@ TRACKBAR_Destroy (TRACKBAR_INFO *infoPtr)
static
LRESULT
TRACKBAR_KillFocus
(
TRACKBAR_INFO
*
infoPtr
,
HWND
hwndGetFocus
)
TRACKBAR_KillFocus
(
TRACKBAR_INFO
*
infoPtr
)
{
TRACE
(
"
\n
"
);
infoPtr
->
bFocussed
=
FALSE
;
...
...
@@ -1472,7 +1472,7 @@ TRACKBAR_KillFocus (TRACKBAR_INFO *infoPtr, HWND hwndGetFocus)
}
static
LRESULT
TRACKBAR_LButtonDown
(
TRACKBAR_INFO
*
infoPtr
,
DWORD
fwKeys
,
INT
x
,
INT
y
)
TRACKBAR_LButtonDown
(
TRACKBAR_INFO
*
infoPtr
,
INT
x
,
INT
y
)
{
POINT
clickPoint
;
...
...
@@ -1501,7 +1501,7 @@ TRACKBAR_LButtonDown (TRACKBAR_INFO *infoPtr, DWORD fwKeys, INT x, INT y)
static
LRESULT
TRACKBAR_LButtonUp
(
TRACKBAR_INFO
*
infoPtr
,
DWORD
fwKeys
,
INT
x
,
INT
y
)
TRACKBAR_LButtonUp
(
TRACKBAR_INFO
*
infoPtr
)
{
if
(
infoPtr
->
flags
&
TB_DRAG_MODE
)
{
notify_with_scroll
(
infoPtr
,
TB_THUMBPOSITION
|
(
infoPtr
->
lPos
<<
16
));
...
...
@@ -1549,7 +1549,7 @@ TRACKBAR_Paint (TRACKBAR_INFO *infoPtr, HDC hdc)
static
LRESULT
TRACKBAR_SetFocus
(
TRACKBAR_INFO
*
infoPtr
,
HWND
hwndLoseFocus
)
TRACKBAR_SetFocus
(
TRACKBAR_INFO
*
infoPtr
)
{
TRACE
(
"
\n
"
);
infoPtr
->
bFocussed
=
TRUE
;
...
...
@@ -1560,7 +1560,7 @@ TRACKBAR_SetFocus (TRACKBAR_INFO *infoPtr, HWND hwndLoseFocus)
static
LRESULT
TRACKBAR_Size
(
TRACKBAR_INFO
*
infoPtr
,
DWORD
fwSizeType
,
INT
nWidth
,
INT
nHeight
)
TRACKBAR_Size
(
TRACKBAR_INFO
*
infoPtr
)
{
TRACKBAR_InitializeThumb
(
infoPtr
);
TRACKBAR_AlignBuddies
(
infoPtr
);
...
...
@@ -1570,7 +1570,7 @@ TRACKBAR_Size (TRACKBAR_INFO *infoPtr, DWORD fwSizeType, INT nWidth, INT nHeight
static
LRESULT
TRACKBAR_Timer
(
TRACKBAR_INFO
*
infoPtr
,
INT
wTimerID
,
const
TIMERPROC
*
tmrpc
)
TRACKBAR_Timer
(
TRACKBAR_INFO
*
infoPtr
)
{
if
(
infoPtr
->
flags
&
TB_AUTO_PAGE
)
{
POINT
pt
;
...
...
@@ -1593,7 +1593,7 @@ static LRESULT theme_changed (const TRACKBAR_INFO* infoPtr)
static
LRESULT
TRACKBAR_MouseMove
(
TRACKBAR_INFO
*
infoPtr
,
DWORD
fwKeys
,
INT
x
,
INT
y
)
TRACKBAR_MouseMove
(
TRACKBAR_INFO
*
infoPtr
,
INT
x
,
INT
y
)
{
DWORD
dwStyle
=
GetWindowLongW
(
infoPtr
->
hwndSelf
,
GWL_STYLE
);
INT
clickPlace
=
(
dwStyle
&
TBS_VERT
)
?
y
:
x
;
...
...
@@ -1657,7 +1657,7 @@ TRACKBAR_MouseMove (TRACKBAR_INFO *infoPtr, DWORD fwKeys, INT x, INT y)
}
static
BOOL
TRACKBAR_KeyDown
(
TRACKBAR_INFO
*
infoPtr
,
INT
nVirtKey
,
DWORD
lKeyData
)
TRACKBAR_KeyDown
(
TRACKBAR_INFO
*
infoPtr
,
INT
nVirtKey
)
{
DWORD
style
=
GetWindowLongW
(
infoPtr
->
hwndSelf
,
GWL_STYLE
);
BOOL
downIsLeft
=
style
&
TBS_DOWNISLEFT
;
...
...
@@ -1713,7 +1713,7 @@ TRACKBAR_KeyDown (TRACKBAR_INFO *infoPtr, INT nVirtKey, DWORD lKeyData)
static
inline
BOOL
TRACKBAR_KeyUp
(
const
TRACKBAR_INFO
*
infoPtr
,
INT
nVirtKey
,
DWORD
lKeyData
)
TRACKBAR_KeyUp
(
const
TRACKBAR_INFO
*
infoPtr
,
INT
nVirtKey
)
{
switch
(
nVirtKey
)
{
case
VK_LEFT
:
...
...
@@ -1866,19 +1866,19 @@ TRACKBAR_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
DLGC_WANTARROWS
;
case
WM_KEYDOWN
:
return
TRACKBAR_KeyDown
(
infoPtr
,
(
INT
)
wParam
,
(
DWORD
)
lParam
);
return
TRACKBAR_KeyDown
(
infoPtr
,
(
INT
)
wParam
);
case
WM_KEYUP
:
return
TRACKBAR_KeyUp
(
infoPtr
,
(
INT
)
wParam
,
(
DWORD
)
lParam
);
return
TRACKBAR_KeyUp
(
infoPtr
,
(
INT
)
wParam
);
case
WM_KILLFOCUS
:
return
TRACKBAR_KillFocus
(
infoPtr
,
(
HWND
)
wParam
);
return
TRACKBAR_KillFocus
(
infoPtr
);
case
WM_LBUTTONDOWN
:
return
TRACKBAR_LButtonDown
(
infoPtr
,
wParam
,
(
SHORT
)
LOWORD
(
lParam
),
(
SHORT
)
HIWORD
(
lParam
));
return
TRACKBAR_LButtonDown
(
infoPtr
,
(
SHORT
)
LOWORD
(
lParam
),
(
SHORT
)
HIWORD
(
lParam
));
case
WM_LBUTTONUP
:
return
TRACKBAR_LButtonUp
(
infoPtr
,
wParam
,
(
SHORT
)
LOWORD
(
lParam
),
(
SHORT
)
HIWORD
(
lParam
)
);
return
TRACKBAR_LButtonUp
(
infoPtr
);
case
WM_MOUSELEAVE
:
infoPtr
->
flags
&=
~
TB_THUMB_HOT
;
...
...
@@ -1886,23 +1886,23 @@ TRACKBAR_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
0
;
case
WM_MOUSEMOVE
:
return
TRACKBAR_MouseMove
(
infoPtr
,
wParam
,
(
SHORT
)
LOWORD
(
lParam
),
(
SHORT
)
HIWORD
(
lParam
));
return
TRACKBAR_MouseMove
(
infoPtr
,
(
SHORT
)
LOWORD
(
lParam
),
(
SHORT
)
HIWORD
(
lParam
));
case
WM_PRINTCLIENT
:
case
WM_PAINT
:
return
TRACKBAR_Paint
(
infoPtr
,
(
HDC
)
wParam
);
case
WM_SETFOCUS
:
return
TRACKBAR_SetFocus
(
infoPtr
,
(
HWND
)
wParam
);
return
TRACKBAR_SetFocus
(
infoPtr
);
case
WM_SIZE
:
return
TRACKBAR_Size
(
infoPtr
,
wParam
,
LOWORD
(
lParam
),
HIWORD
(
lParam
)
);
return
TRACKBAR_Size
(
infoPtr
);
case
WM_THEMECHANGED
:
return
theme_changed
(
infoPtr
);
case
WM_TIMER
:
return
TRACKBAR_Timer
(
infoPtr
,
(
INT
)
wParam
,
(
TIMERPROC
*
)
lParam
);
return
TRACKBAR_Timer
(
infoPtr
);
case
WM_WININICHANGE
:
return
TRACKBAR_InitializeThumb
(
infoPtr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment