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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
14 deletions
+33
-14
filedlg.c
dlls/comdlg32/filedlg.c
+33
-14
No files found.
dlls/comdlg32/filedlg.c
View file @
bb310d54
...
...
@@ -261,7 +261,7 @@ static BOOL WINAPI GetFileName95(FileOpenDlgInfos *fodInfos)
/* 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
);
return
FALSE
;
...
...
@@ -285,11 +285,18 @@ static BOOL WINAPI GetFileName95(FileOpenDlgInfos *fodInfos)
/* Some shell namespace extensions depend on COM being initialized. */
hr
=
OleInitialize
(
NULL
);
lRes
=
DialogBoxIndirectParamA
(
COMDLG32_hInstance
,
(
LPDLGTEMPLATEA
)
template
,
fodInfos
->
ofnInfos
->
hwndOwner
,
FileOpenDlgProc95
,
(
LPARAM
)
fodInfos
);
if
(
fodInfos
->
unicode
)
lRes
=
DialogBoxIndirectParamW
(
COMDLG32_hInstance
,
template
,
fodInfos
->
ofnInfos
->
hwndOwner
,
FileOpenDlgProc95
,
(
LPARAM
)
fodInfos
);
else
lRes
=
DialogBoxIndirectParamA
(
COMDLG32_hInstance
,
(
LPDLGTEMPLATEA
)
template
,
fodInfos
->
ofnInfos
->
hwndOwner
,
FileOpenDlgProc95
,
(
LPARAM
)
fodInfos
);
if
(
SUCCEEDED
(
hr
))
OleUninitialize
();
...
...
@@ -771,9 +778,14 @@ static HWND CreateTemplateDialog(FileOpenDlgInfos *fodInfos, HWND hwnd)
return
NULL
;
}
}
hChildDlg
=
CreateDialogIndirectParamA
(
hinst
,
template
,
hwnd
,
IsHooked
(
fodInfos
)
?
(
DLGPROC
)
fodInfos
->
ofnInfos
->
lpfnHook
:
FileOpenDlgProcUserTemplate
,
(
LPARAM
)
fodInfos
->
ofnInfos
);
if
(
fodInfos
->
unicode
)
hChildDlg
=
CreateDialogIndirectParamW
(
hinst
,
template
,
hwnd
,
IsHooked
(
fodInfos
)
?
(
DLGPROC
)
fodInfos
->
ofnInfos
->
lpfnHook
:
FileOpenDlgProcUserTemplate
,
(
LPARAM
)
fodInfos
->
ofnInfos
);
else
hChildDlg
=
CreateDialogIndirectParamA
(
hinst
,
template
,
hwnd
,
IsHooked
(
fodInfos
)
?
(
DLGPROC
)
fodInfos
->
ofnInfos
->
lpfnHook
:
FileOpenDlgProcUserTemplate
,
(
LPARAM
)
fodInfos
->
ofnInfos
);
if
(
hChildDlg
)
{
ShowWindow
(
hChildDlg
,
SW_SHOW
);
...
...
@@ -1197,11 +1209,18 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
rectTB
.
left
=
rectlook
.
right
;
rectTB
.
top
=
rectlook
.
top
-
1
;
fodInfos
->
DlgInfos
.
hwndTB
=
CreateWindowExA
(
0
,
TOOLBARCLASSNAMEA
,
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
);
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
,
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
);
SendMessageA
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_BUTTONSTRUCTSIZE
,
(
WPARAM
)
sizeof
(
TBBUTTON
),
0
);
...
...
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