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
b0952c95
Commit
b0952c95
authored
Oct 09, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tab: Remove unnecessary helper parameter, use SDK name for UpDown control.
parent
9b06ec73
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
tab.c
dlls/comctl32/tab.c
+7
-10
No files found.
dlls/comctl32/tab.c
View file @
b0952c95
...
@@ -957,14 +957,11 @@ static LRESULT TAB_OnHScroll(TAB_INFO *infoPtr, int nScrollCode, int nPos)
...
@@ -957,14 +957,11 @@ static LRESULT TAB_OnHScroll(TAB_INFO *infoPtr, int nScrollCode, int nPos)
* scrolling control is displayed (or not).
* scrolling control is displayed (or not).
*/
*/
static
void
TAB_SetupScrolling
(
static
void
TAB_SetupScrolling
(
HWND
hwnd
,
TAB_INFO
*
infoPtr
,
TAB_INFO
*
infoPtr
,
const
RECT
*
clientRect
)
const
RECT
*
clientRect
)
{
{
static
const
WCHAR
msctls_updown32W
[]
=
{
'm'
,
's'
,
'c'
,
't'
,
'l'
,
's'
,
'_'
,
'u'
,
'p'
,
'd'
,
'o'
,
'w'
,
'n'
,
'3'
,
'2'
,
0
};
static
const
WCHAR
emptyW
[]
=
{
0
};
static
const
WCHAR
emptyW
[]
=
{
0
};
INT
maxRange
=
0
;
INT
maxRange
=
0
;
DWORD
lStyle
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
if
(
infoPtr
->
needsScrolling
)
if
(
infoPtr
->
needsScrolling
)
{
{
...
@@ -974,12 +971,12 @@ static void TAB_SetupScrolling(
...
@@ -974,12 +971,12 @@ static void TAB_SetupScrolling(
/*
/*
* Calculate the position of the scroll control.
* Calculate the position of the scroll control.
*/
*/
if
(
l
Style
&
TCS_VERTICAL
)
if
(
infoPtr
->
dw
Style
&
TCS_VERTICAL
)
{
{
controlPos
.
right
=
clientRect
->
right
;
controlPos
.
right
=
clientRect
->
right
;
controlPos
.
left
=
controlPos
.
right
-
2
*
GetSystemMetrics
(
SM_CXHSCROLL
);
controlPos
.
left
=
controlPos
.
right
-
2
*
GetSystemMetrics
(
SM_CXHSCROLL
);
if
(
l
Style
&
TCS_BOTTOM
)
if
(
infoPtr
->
dw
Style
&
TCS_BOTTOM
)
{
{
controlPos
.
top
=
clientRect
->
bottom
-
infoPtr
->
tabHeight
;
controlPos
.
top
=
clientRect
->
bottom
-
infoPtr
->
tabHeight
;
controlPos
.
bottom
=
controlPos
.
top
+
GetSystemMetrics
(
SM_CYHSCROLL
);
controlPos
.
bottom
=
controlPos
.
top
+
GetSystemMetrics
(
SM_CYHSCROLL
);
...
@@ -995,7 +992,7 @@ static void TAB_SetupScrolling(
...
@@ -995,7 +992,7 @@ static void TAB_SetupScrolling(
controlPos
.
right
=
clientRect
->
right
;
controlPos
.
right
=
clientRect
->
right
;
controlPos
.
left
=
controlPos
.
right
-
2
*
GetSystemMetrics
(
SM_CXHSCROLL
);
controlPos
.
left
=
controlPos
.
right
-
2
*
GetSystemMetrics
(
SM_CXHSCROLL
);
if
(
l
Style
&
TCS_BOTTOM
)
if
(
infoPtr
->
dw
Style
&
TCS_BOTTOM
)
{
{
controlPos
.
top
=
clientRect
->
bottom
-
infoPtr
->
tabHeight
;
controlPos
.
top
=
clientRect
->
bottom
-
infoPtr
->
tabHeight
;
controlPos
.
bottom
=
controlPos
.
top
+
GetSystemMetrics
(
SM_CYHSCROLL
);
controlPos
.
bottom
=
controlPos
.
top
+
GetSystemMetrics
(
SM_CYHSCROLL
);
...
@@ -1013,12 +1010,12 @@ static void TAB_SetupScrolling(
...
@@ -1013,12 +1010,12 @@ static void TAB_SetupScrolling(
*/
*/
if
(
infoPtr
->
hwndUpDown
==
0
)
if
(
infoPtr
->
hwndUpDown
==
0
)
{
{
infoPtr
->
hwndUpDown
=
CreateWindowW
(
msctls_updown32
W
,
emptyW
,
infoPtr
->
hwndUpDown
=
CreateWindowW
(
UPDOWN_CLASS
W
,
emptyW
,
WS_VISIBLE
|
WS_CHILD
|
UDS_HORZ
,
WS_VISIBLE
|
WS_CHILD
|
UDS_HORZ
,
controlPos
.
left
,
controlPos
.
top
,
controlPos
.
left
,
controlPos
.
top
,
controlPos
.
right
-
controlPos
.
left
,
controlPos
.
right
-
controlPos
.
left
,
controlPos
.
bottom
-
controlPos
.
top
,
controlPos
.
bottom
-
controlPos
.
top
,
hwnd
,
NULL
,
NULL
,
NULL
);
infoPtr
->
hwnd
,
NULL
,
NULL
,
NULL
);
}
}
else
else
{
{
...
@@ -1053,7 +1050,7 @@ static void TAB_SetupScrolling(
...
@@ -1053,7 +1050,7 @@ static void TAB_SetupScrolling(
else
else
{
{
/* If we once had a scroll control... hide it */
/* If we once had a scroll control... hide it */
if
(
infoPtr
->
hwndUpDown
!=
0
)
if
(
infoPtr
->
hwndUpDown
)
ShowWindow
(
infoPtr
->
hwndUpDown
,
SW_HIDE
);
ShowWindow
(
infoPtr
->
hwndUpDown
,
SW_HIDE
);
}
}
if
(
infoPtr
->
hwndUpDown
)
if
(
infoPtr
->
hwndUpDown
)
...
@@ -1267,7 +1264,7 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
...
@@ -1267,7 +1264,7 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
infoPtr
->
needsScrolling
=
FALSE
;
infoPtr
->
needsScrolling
=
FALSE
;
infoPtr
->
leftmostVisible
=
0
;
infoPtr
->
leftmostVisible
=
0
;
}
}
TAB_SetupScrolling
(
infoPtr
->
hwnd
,
infoPtr
,
&
clientRect
);
TAB_SetupScrolling
(
infoPtr
,
&
clientRect
);
/* Set the number of rows */
/* Set the number of rows */
infoPtr
->
uNumRows
=
curItemRowCount
;
infoPtr
->
uNumRows
=
curItemRowCount
;
...
...
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