Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2a7d98a5
Commit
2a7d98a5
authored
Feb 28, 2009
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Mar 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Simplify three TAB_ functions.
parent
3d0c0429
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tab.c
dlls/comctl32/tab.c
+6
-6
No files found.
dlls/comctl32/tab.c
View file @
2a7d98a5
...
...
@@ -916,7 +916,7 @@ static LRESULT TAB_AdjustRect(const TAB_INFO *infoPtr, WPARAM fLarger, LPRECT pr
* This method will handle the notification from the scroll control and
* perform the scrolling operation on the tab control.
*/
static
LRESULT
TAB_OnHScroll
(
TAB_INFO
*
infoPtr
,
int
nScrollCode
,
int
nPos
,
HWND
hwndScroll
)
static
LRESULT
TAB_OnHScroll
(
TAB_INFO
*
infoPtr
,
int
nScrollCode
,
int
nPos
)
{
if
(
nScrollCode
==
SB_THUMBPOSITION
&&
nPos
!=
infoPtr
->
leftmostVisible
)
{
...
...
@@ -2936,7 +2936,7 @@ static inline LRESULT TAB_Size (TAB_INFO *infoPtr)
}
static
LRESULT
TAB_Create
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
static
LRESULT
TAB_Create
(
HWND
hwnd
,
LPARAM
lParam
)
{
TAB_INFO
*
infoPtr
;
TEXTMETRICW
fontMetrics
;
...
...
@@ -3076,7 +3076,7 @@ static LRESULT theme_changed(const TAB_INFO *infoPtr)
return
0
;
}
static
LRESULT
TAB_NCCalcSize
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
l
Param
)
static
LRESULT
TAB_NCCalcSize
(
WPARAM
w
Param
)
{
if
(
!
wParam
)
return
0
;
...
...
@@ -3211,7 +3211,7 @@ TAB_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TAB_SetFont
(
infoPtr
,
(
HFONT
)
wParam
);
case
WM_CREATE
:
return
TAB_Create
(
hwnd
,
wParam
,
lParam
);
return
TAB_Create
(
hwnd
,
lParam
);
case
WM_NCDESTROY
:
return
TAB_Destroy
(
infoPtr
);
...
...
@@ -3245,7 +3245,7 @@ TAB_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TAB_SetRedraw
(
infoPtr
,
(
BOOL
)
wParam
);
case
WM_HSCROLL
:
return
TAB_OnHScroll
(
infoPtr
,
(
int
)
LOWORD
(
wParam
),
(
int
)
HIWORD
(
wParam
)
,
(
HWND
)
lParam
);
return
TAB_OnHScroll
(
infoPtr
,
(
int
)
LOWORD
(
wParam
),
(
int
)
HIWORD
(
wParam
));
case
WM_STYLECHANGED
:
TAB_SetItemBounds
(
infoPtr
);
...
...
@@ -3270,7 +3270,7 @@ TAB_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TAB_NCHitTest
(
infoPtr
,
lParam
);
case
WM_NCCALCSIZE
:
return
TAB_NCCalcSize
(
hwnd
,
wParam
,
l
Param
);
return
TAB_NCCalcSize
(
w
Param
);
default:
if
(
uMsg
>=
WM_USER
&&
uMsg
<
WM_APP
&&
!
COMCTL32_IsReflectedMessage
(
uMsg
))
...
...
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