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
8a8457e2
Commit
8a8457e2
authored
Mar 11, 2002
by
Guy L. Albertelli
Committed by
Alexandre Julliard
Mar 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for WM_WINDOWPOSCHANGED to save new origin of window.
parent
7d983d24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
rebar.c
dlls/comctl32/rebar.c
+29
-2
No files found.
dlls/comctl32/rebar.c
View file @
8a8457e2
...
...
@@ -20,7 +20,7 @@
/*
* Rebar control rev 8
c
* Rebar control rev 8
d
*
* Copyright 1998, 1999 Eric Kohl
*
...
...
@@ -109,6 +109,8 @@
* 19. Fix problem in _Layout when all lengths are 0.
* 20. If CLR_NONE specified, we will use default BtnFace color when drawing.
* 21. Fix test in REBAR_Layout.
* rev 8d
* 22. Add support for WM_WINDOWPOSCHANGED to save new origin of window.
*
*
* Still to do:
...
...
@@ -240,6 +242,7 @@ typedef struct
POINTS
dragNow
;
/* x,y of this MouseMove */
INT
ihitBand
;
/* band number of band whose gripper was grabbed */
INT
ihitoffset
;
/* offset of hotspot from gripper.left */
POINT
origin
;
/* left/upper corner of client */
REBAR_ROW
*
rows
;
/* pointer to row indexes */
REBAR_BAND
*
bands
;
/* pointer to the array of rebar bands */
...
...
@@ -1213,9 +1216,11 @@ REBAR_ForceResize (REBAR_INFO *infoPtr)
else
{
width
+=
infoPtr
->
calcSize
.
cx
;
height
+=
infoPtr
->
calcSize
.
cy
;
x
=
infoPtr
->
origin
.
x
;
y
=
infoPtr
->
origin
.
y
;
}
TRACE
(
"hwnd %0
4
x, style=%08lx, setting at (%d,%d) for (%d,%d)
\n
"
,
TRACE
(
"hwnd %0
8
x, style=%08lx, setting at (%d,%d) for (%d,%d)
\n
"
,
infoPtr
->
hwndSelf
,
infoPtr
->
dwStyle
,
x
,
y
,
width
,
height
);
SetWindowPos
(
infoPtr
->
hwndSelf
,
0
,
x
,
y
,
width
,
height
,
...
...
@@ -4223,6 +4228,25 @@ REBAR_StyleChanged (REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
}
static
LRESULT
REBAR_WindowPosChanged
(
REBAR_INFO
*
infoPtr
,
WPARAM
wParam
,
LPARAM
lParam
)
{
WINDOWPOS
*
lpwp
=
(
WINDOWPOS
*
)
lParam
;
LRESULT
ret
;
RECT
rc
;
/* Save the new origin of this window - used by _ForceResize */
infoPtr
->
origin
.
x
=
lpwp
->
x
;
infoPtr
->
origin
.
y
=
lpwp
->
y
;
ret
=
DefWindowProcA
(
infoPtr
->
hwndSelf
,
WM_WINDOWPOSCHANGED
,
wParam
,
lParam
);
GetWindowRect
(
infoPtr
->
hwndSelf
,
&
rc
);
TRACE
(
"hwnd %08x new pos (%d,%d)-(%d,%d)
\n
"
,
infoPtr
->
hwndSelf
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
return
ret
;
}
static
LRESULT
WINAPI
REBAR_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
...
...
@@ -4436,6 +4460,9 @@ REBAR_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
/* case WM_VKEYTOITEM: supported according to ControlSpy */
/* case WM_WININICHANGE: */
case
WM_WINDOWPOSCHANGED
:
return
REBAR_WindowPosChanged
(
infoPtr
,
wParam
,
lParam
);
default
:
if
(
uMsg
>=
WM_USER
)
ERR
(
"unknown msg %04x wp=%08x lp=%08lx
\n
"
,
...
...
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