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
bb310d54
Commit
bb310d54
authored
Jul 24, 2006
by
Stefan Siebert
Committed by
Alexandre Julliard
Jul 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: GetOpenFileNameW - Create unicode windows.
parent
084458bc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
filedlg.c
dlls/comdlg32/filedlg.c
+20
-1
No files found.
dlls/comdlg32/filedlg.c
View file @
bb310d54
...
@@ -261,7 +261,7 @@ static BOOL WINAPI GetFileName95(FileOpenDlgInfos *fodInfos)
...
@@ -261,7 +261,7 @@ static BOOL WINAPI GetFileName95(FileOpenDlgInfos *fodInfos)
/* Create the dialog from a template */
/* Create the dialog from a template */
if
(
!
(
hRes
=
FindResource
A
(
COMDLG32_hInstance
,
MAKEINTRESOURCEA
(
NEWFILEOPENORD
),(
LP
STR
)
RT_DIALOG
)))
if
(
!
(
hRes
=
FindResource
W
(
COMDLG32_hInstance
,
MAKEINTRESOURCEW
(
NEWFILEOPENORD
),(
LPCW
STR
)
RT_DIALOG
)))
{
{
COMDLG32_SetCommDlgExtendedError
(
CDERR_FINDRESFAILURE
);
COMDLG32_SetCommDlgExtendedError
(
CDERR_FINDRESFAILURE
);
return
FALSE
;
return
FALSE
;
...
@@ -285,6 +285,13 @@ static BOOL WINAPI GetFileName95(FileOpenDlgInfos *fodInfos)
...
@@ -285,6 +285,13 @@ static BOOL WINAPI GetFileName95(FileOpenDlgInfos *fodInfos)
/* Some shell namespace extensions depend on COM being initialized. */
/* Some shell namespace extensions depend on COM being initialized. */
hr
=
OleInitialize
(
NULL
);
hr
=
OleInitialize
(
NULL
);
if
(
fodInfos
->
unicode
)
lRes
=
DialogBoxIndirectParamW
(
COMDLG32_hInstance
,
template
,
fodInfos
->
ofnInfos
->
hwndOwner
,
FileOpenDlgProc95
,
(
LPARAM
)
fodInfos
);
else
lRes
=
DialogBoxIndirectParamA
(
COMDLG32_hInstance
,
lRes
=
DialogBoxIndirectParamA
(
COMDLG32_hInstance
,
(
LPDLGTEMPLATEA
)
template
,
(
LPDLGTEMPLATEA
)
template
,
fodInfos
->
ofnInfos
->
hwndOwner
,
fodInfos
->
ofnInfos
->
hwndOwner
,
...
@@ -771,6 +778,11 @@ static HWND CreateTemplateDialog(FileOpenDlgInfos *fodInfos, HWND hwnd)
...
@@ -771,6 +778,11 @@ static HWND CreateTemplateDialog(FileOpenDlgInfos *fodInfos, HWND hwnd)
return
NULL
;
return
NULL
;
}
}
}
}
if
(
fodInfos
->
unicode
)
hChildDlg
=
CreateDialogIndirectParamW
(
hinst
,
template
,
hwnd
,
IsHooked
(
fodInfos
)
?
(
DLGPROC
)
fodInfos
->
ofnInfos
->
lpfnHook
:
FileOpenDlgProcUserTemplate
,
(
LPARAM
)
fodInfos
->
ofnInfos
);
else
hChildDlg
=
CreateDialogIndirectParamA
(
hinst
,
template
,
hwnd
,
hChildDlg
=
CreateDialogIndirectParamA
(
hinst
,
template
,
hwnd
,
IsHooked
(
fodInfos
)
?
(
DLGPROC
)
fodInfos
->
ofnInfos
->
lpfnHook
:
FileOpenDlgProcUserTemplate
,
IsHooked
(
fodInfos
)
?
(
DLGPROC
)
fodInfos
->
ofnInfos
->
lpfnHook
:
FileOpenDlgProcUserTemplate
,
(
LPARAM
)
fodInfos
->
ofnInfos
);
(
LPARAM
)
fodInfos
->
ofnInfos
);
...
@@ -1197,6 +1209,13 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
...
@@ -1197,6 +1209,13 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
rectTB
.
left
=
rectlook
.
right
;
rectTB
.
left
=
rectlook
.
right
;
rectTB
.
top
=
rectlook
.
top
-
1
;
rectTB
.
top
=
rectlook
.
top
-
1
;
if
(
fodInfos
->
unicode
)
fodInfos
->
DlgInfos
.
hwndTB
=
CreateWindowExW
(
0
,
TOOLBARCLASSNAMEW
,
NULL
,
WS_CHILD
|
WS_GROUP
|
WS_VISIBLE
|
WS_CLIPSIBLINGS
|
TBSTYLE_TOOLTIPS
|
CCS_NODIVIDER
|
CCS_NORESIZE
,
rectTB
.
left
,
rectTB
.
top
,
rectTB
.
right
-
rectTB
.
left
,
rectTB
.
bottom
-
rectTB
.
top
,
hwnd
,
(
HMENU
)
IDC_TOOLBAR
,
COMDLG32_hInstance
,
NULL
);
else
fodInfos
->
DlgInfos
.
hwndTB
=
CreateWindowExA
(
0
,
TOOLBARCLASSNAMEA
,
NULL
,
fodInfos
->
DlgInfos
.
hwndTB
=
CreateWindowExA
(
0
,
TOOLBARCLASSNAMEA
,
NULL
,
WS_CHILD
|
WS_GROUP
|
WS_VISIBLE
|
WS_CLIPSIBLINGS
|
TBSTYLE_TOOLTIPS
|
CCS_NODIVIDER
|
CCS_NORESIZE
,
WS_CHILD
|
WS_GROUP
|
WS_VISIBLE
|
WS_CLIPSIBLINGS
|
TBSTYLE_TOOLTIPS
|
CCS_NODIVIDER
|
CCS_NORESIZE
,
rectTB
.
left
,
rectTB
.
top
,
rectTB
.
left
,
rectTB
.
top
,
...
...
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