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
66eda939
Commit
66eda939
authored
Mar 22, 2002
by
Guy L. Albertelli
Committed by
Alexandre Julliard
Mar 22, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reanalyze button status during NCCalcSize processing because size of
window may have changed.
parent
fb23e10c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
4 deletions
+28
-4
pager.c
dlls/comctl32/pager.c
+28
-4
No files found.
dlls/comctl32/pager.c
View file @
66eda939
...
...
@@ -837,6 +837,9 @@ PAGER_NCCalcSize(HWND hwnd, WPARAM wParam, LPARAM lParam)
LPRECT
lpRect
=
(
LPRECT
)
lParam
;
RECT
rcChildw
,
rcmyw
,
wnrc
,
lbrc
,
rbrc
;
POINT
cursor
;
BOOL
resizeClient
=
FALSE
;
BOOL
repaintBtns
=
FALSE
;
INT
scrollRange
;
/*
* lParam points to a RECT struct. On entry, the struct
...
...
@@ -855,6 +858,16 @@ PAGER_NCCalcSize(HWND hwnd, WPARAM wParam, LPARAM lParam)
MapWindowPoints
(
0
,
hwnd
,
(
LPPOINT
)
&
rcChildw
,
2
);
GetCursorPos
(
&
cursor
);
GetWindowRect
(
hwnd
,
&
rcmyw
);
/* Reset buttons and hide any grey ones */
scrollRange
=
infoPtr
->
nWidth
-
(
rcmyw
.
right
-
rcmyw
.
bottom
);
TRACE
(
"nPos=%d, scrollrange=%d, nWidth=%d, myw=(%d,%d)-(%d,%d)
\n
"
,
infoPtr
->
nPos
,
scrollRange
,
infoPtr
->
nWidth
,
rcmyw
.
left
,
rcmyw
.
top
,
rcmyw
.
right
,
rcmyw
.
bottom
);
PAGER_GrayAndRestoreBtns
(
infoPtr
,
scrollRange
,
&
resizeClient
,
&
repaintBtns
);
PAGER_HideGrayBtns
(
infoPtr
,
&
resizeClient
);
if
(
PtInRect
(
&
rcmyw
,
cursor
))
{
GetWindowRect
(
hwnd
,
&
wnrc
);
lbrc
=
wnrc
;
...
...
@@ -892,6 +905,17 @@ PAGER_NCCalcSize(HWND hwnd, WPARAM wParam, LPARAM lParam)
MapWindowPoints
(
0
,
hwnd
,
(
LPPOINT
)
&
rcChildw
,
2
);
GetCursorPos
(
&
cursor
);
GetWindowRect
(
hwnd
,
&
rcmyw
);
/* Reset buttons and hide any grey ones */
scrollRange
=
infoPtr
->
nHeight
-
(
rcmyw
.
bottom
-
rcmyw
.
top
);
TRACE
(
"nPos=%d, scrollrange=%d, nHeigth=%d, myw=(%d,%d)-(%d,%d)
\n
"
,
infoPtr
->
nPos
,
scrollRange
,
infoPtr
->
nHeight
,
rcmyw
.
left
,
rcmyw
.
top
,
rcmyw
.
right
,
rcmyw
.
bottom
);
PAGER_GrayAndRestoreBtns
(
infoPtr
,
scrollRange
,
&
resizeClient
,
&
repaintBtns
);
PAGER_HideGrayBtns
(
infoPtr
,
&
resizeClient
);
if
(
PtInRect
(
&
rcmyw
,
cursor
))
{
/* native does:
...
...
@@ -926,10 +950,10 @@ PAGER_NCCalcSize(HWND hwnd, WPARAM wParam, LPARAM lParam)
lpRect
->
bottom
=
infoPtr
->
nHeight
;
}
TRACE
(
"[%04x] client rect set to %dx%d at (%d,%d)
\n
"
,
hwnd
,
lpRect
->
right
-
lpRect
->
left
,
lpRect
->
bottom
-
lpRect
->
top
,
lpRect
->
left
,
lpRect
->
top
);
TRACE
(
"[%04x] client rect set to %dx%d at (%d,%d)
BtnState[%d,%d]
\n
"
,
hwnd
,
lpRect
->
right
-
lpRect
->
left
,
lpRect
->
bottom
-
lpRect
->
top
,
lpRect
->
left
,
lpRect
->
top
,
infoPtr
->
TLbtnState
,
infoPtr
->
BRbtnState
);
return
0
;
}
...
...
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