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
261b97af
Commit
261b97af
authored
Aug 22, 2003
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some applications depend on the order of initialization steps of the
custom file open dialog.
parent
5beaf474
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
filedlg95.c
dlls/commdlg/filedlg95.c
+10
-4
No files found.
dlls/commdlg/filedlg95.c
View file @
261b97af
...
...
@@ -649,9 +649,9 @@ static void ArrangeCtrlPositions(HWND hwndChildDlg, HWND hwndParentDlg, BOOL hid
/* finally use fixed parent size */
rectParent
.
bottom
-=
help_fixup
;
/* s
et the size of the child dialog
*/
SetWindowPos
(
hwndChildDlg
,
HWND_BOTTOM
,
0
,
0
,
rectParent
.
right
,
rectParent
.
bottom
,
SWP_NOACTIVATE
)
;
/* s
ave the size of the parent's client area
*/
rectChild
.
right
=
rectParent
.
right
;
rectChild
.
bottom
=
rectParent
.
bottom
;
/* set the size of the parent dialog */
AdjustWindowRectEx
(
&
rectParent
,
GetWindowLongW
(
hwndParentDlg
,
GWL_STYLE
),
...
...
@@ -661,6 +661,10 @@ static void ArrangeCtrlPositions(HWND hwndChildDlg, HWND hwndParentDlg, BOOL hid
rectParent
.
right
-
rectParent
.
left
,
rectParent
.
bottom
-
rectParent
.
top
,
SWP_NOMOVE
|
SWP_NOZORDER
);
/* set the size of the child dialog */
SetWindowPos
(
hwndChildDlg
,
HWND_BOTTOM
,
0
,
0
,
rectChild
.
right
,
rectChild
.
bottom
,
SWP_NOACTIVATE
);
}
INT_PTR
CALLBACK
FileOpenDlgProcUserTemplate
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
...
...
@@ -930,11 +934,13 @@ INT_PTR CALLBACK FileOpenDlgProc95(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l
CreateTemplateDialog
((
FileOpenDlgInfos
*
)
lParam
,
hwnd
);
FILEDLG95_InitControls
(
hwnd
);
FILEDLG95_FillControls
(
hwnd
,
wParam
,
lParam
);
if
(
fodInfos
->
DlgInfos
.
hwndCustomDlg
)
ArrangeCtrlPositions
(
fodInfos
->
DlgInfos
.
hwndCustomDlg
,
hwnd
,
(
fodInfos
->
ofnInfos
->
Flags
&
(
OFN_HIDEREADONLY
|
OFN_SHOWHELP
))
==
OFN_HIDEREADONLY
);
FILEDLG95_FillControls
(
hwnd
,
wParam
,
lParam
);
SendCustomDlgNotificationMessage
(
hwnd
,
CDN_INITDONE
);
SendCustomDlgNotificationMessage
(
hwnd
,
CDN_FOLDERCHANGE
);
SendCustomDlgNotificationMessage
(
hwnd
,
CDN_SELCHANGE
);
...
...
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