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
a6c8e4e4
Commit
a6c8e4e4
authored
Jun 04, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Jun 04, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Take the dialog frame into account when calculating the dialog size.
parent
873c0726
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
7 deletions
+22
-7
dialog.c
dlls/msi/dialog.c
+22
-7
No files found.
dlls/msi/dialog.c
View file @
a6c8e4e4
...
...
@@ -796,15 +796,31 @@ static MSIRECORD *msi_get_dialog_record( msi_dialog *dialog )
return
rec
;
}
static
void
msi_dialog_adjust_dialog_size
(
msi_dialog
*
dialog
,
LPSIZE
sz
)
{
RECT
rect
;
LONG
style
;
/* turn the client size into the window rectangle */
rect
.
left
=
0
;
rect
.
top
=
0
;
rect
.
right
=
msi_dialog_scale_unit
(
dialog
,
sz
->
cx
);
rect
.
bottom
=
msi_dialog_scale_unit
(
dialog
,
sz
->
cy
);
style
=
GetWindowLongPtrW
(
dialog
->
hwnd
,
GWL_STYLE
);
AdjustWindowRect
(
&
rect
,
style
,
FALSE
);
sz
->
cx
=
rect
.
right
-
rect
.
left
;
sz
->
cy
=
rect
.
bottom
-
rect
.
top
;
}
static
LRESULT
msi_dialog_oncreate
(
HWND
hwnd
,
LPCREATESTRUCTW
cs
)
{
static
const
WCHAR
df
[]
=
{
'D'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
'U'
,
'I'
,
'F'
,
'o'
,
'n'
,
't'
,
0
};
msi_dialog
*
dialog
=
(
msi_dialog
*
)
cs
->
lpCreateParams
;
MSIRECORD
*
rec
=
NULL
;
DWORD
width
,
height
;
LPCWSTR
text
;
LPWSTR
title
=
NULL
;
SIZE
size
;
TRACE
(
"%p %p
\n
"
,
dialog
,
dialog
->
package
);
...
...
@@ -820,19 +836,18 @@ static LRESULT msi_dialog_oncreate( HWND hwnd, LPCREATESTRUCTW cs )
dialog
->
scale
=
msi_dialog_get_sans_serif_height
(
dialog
->
hwnd
);
width
=
MSI_RecordGetInteger
(
rec
,
4
);
height
=
MSI_RecordGetInteger
(
rec
,
5
);
size
.
cx
=
MSI_RecordGetInteger
(
rec
,
4
);
size
.
cy
=
MSI_RecordGetInteger
(
rec
,
5
);
msi_dialog_adjust_dialog_size
(
dialog
,
&
size
);
dialog
->
attributes
=
MSI_RecordGetInteger
(
rec
,
6
);
text
=
MSI_RecordGetString
(
rec
,
7
);
width
=
msi_dialog_scale_unit
(
dialog
,
width
);
height
=
msi_dialog_scale_unit
(
dialog
,
height
)
+
25
;
/* FIXME */
dialog
->
default_font
=
load_dynamic_property
(
dialog
->
package
,
df
,
NULL
);
deformat_string
(
dialog
->
package
,
text
,
&
title
);
SetWindowTextW
(
hwnd
,
title
);
SetWindowPos
(
hwnd
,
0
,
0
,
0
,
width
,
height
,
SetWindowPos
(
hwnd
,
0
,
0
,
0
,
size
.
cx
,
size
.
cy
,
SWP_NOMOVE
|
SWP_NOACTIVATE
|
SWP_NOZORDER
|
SWP_NOREDRAW
);
HeapFree
(
GetProcessHeap
(),
0
,
title
);
...
...
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