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
1cfdc518
Commit
1cfdc518
authored
Aug 31, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Store and use the center point of the dialog window in between dialogs.
parent
ad559ca8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
4 deletions
+29
-4
dialog.c
dlls/msi/dialog.c
+27
-4
msipriv.h
dlls/msi/msipriv.h
+2
-0
No files found.
dlls/msi/dialog.c
View file @
1cfdc518
...
...
@@ -86,6 +86,7 @@ struct msi_dialog_tag
BOOL
finished
;
INT
scale
;
DWORD
attributes
;
SIZE
size
;
HWND
hwnd
;
LPWSTR
default_font
;
msi_font
*
font_list
;
...
...
@@ -2373,10 +2374,27 @@ static void msi_dialog_adjust_dialog_pos( msi_dialog *dialog, MSIRECORD *rec, LP
center
.
y
=
MulDiv
(
center
.
y
,
yres
,
100
);
/* turn the client pos into the window rectangle */
pos
->
left
=
center
.
x
-
sz
.
cx
/
2
;
pos
->
right
=
pos
->
left
+
sz
.
cx
;
pos
->
top
=
center
.
y
-
sz
.
cy
/
2
;
pos
->
bottom
=
pos
->
top
+
sz
.
cy
;
if
(
dialog
->
package
->
center_x
&&
dialog
->
package
->
center_y
)
{
pos
->
left
=
dialog
->
package
->
center_x
-
sz
.
cx
/
2
.
0
;
pos
->
right
=
pos
->
left
+
sz
.
cx
;
pos
->
top
=
dialog
->
package
->
center_y
-
sz
.
cy
/
2
.
0
;
pos
->
bottom
=
pos
->
top
+
sz
.
cy
;
}
else
{
pos
->
left
=
center
.
x
-
sz
.
cx
/
2
;
pos
->
right
=
pos
->
left
+
sz
.
cx
;
pos
->
top
=
center
.
y
-
sz
.
cy
/
2
;
pos
->
bottom
=
pos
->
top
+
sz
.
cy
;
/* save the center */
dialog
->
package
->
center_x
=
center
.
x
;
dialog
->
package
->
center_y
=
center
.
y
;
}
dialog
->
size
.
cx
=
sz
.
cx
;
dialog
->
size
.
cy
=
sz
.
cy
;
TRACE
(
"%lu %lu %lu %lu
\n
"
,
pos
->
left
,
pos
->
top
,
pos
->
right
,
pos
->
bottom
);
...
...
@@ -2709,6 +2727,11 @@ static LRESULT WINAPI MSIDialog_WndProc( HWND hwnd, UINT msg,
switch
(
msg
)
{
case
WM_MOVE
:
dialog
->
package
->
center_x
=
LOWORD
(
lParam
)
+
dialog
->
size
.
cx
/
2
.
0
;
dialog
->
package
->
center_y
=
HIWORD
(
lParam
)
+
dialog
->
size
.
cy
/
2
.
0
;
break
;
case
WM_CREATE
:
return
msi_dialog_oncreate
(
hwnd
,
(
LPCREATESTRUCTW
)
lParam
);
...
...
dlls/msi/msipriv.h
View file @
1cfdc518
...
...
@@ -231,6 +231,8 @@ typedef struct tagMSIPACKAGE
UINT
CurrentInstallState
;
msi_dialog
*
dialog
;
LPWSTR
next_dialog
;
float
center_x
;
float
center_y
;
UINT
WordCount
;
...
...
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