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
68fbebf7
Commit
68fbebf7
authored
Mar 07, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Use unicode Win32 APIs when possible.
parent
afd6f64a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
44 deletions
+43
-44
filedlg.c
dlls/comdlg32/filedlg.c
+43
-44
No files found.
dlls/comdlg32/filedlg.c
View file @
68fbebf7
...
@@ -217,7 +217,7 @@ static int FILEDLG95_LOOKIN_RemoveMostExpandedItem(HWND hwnd);
...
@@ -217,7 +217,7 @@ static int FILEDLG95_LOOKIN_RemoveMostExpandedItem(HWND hwnd);
static
void
FILEDLG95_LOOKIN_Clean
(
HWND
hwnd
);
static
void
FILEDLG95_LOOKIN_Clean
(
HWND
hwnd
);
/* Miscellaneous tool functions */
/* Miscellaneous tool functions */
static
HRESULT
GetName
(
LPSHELLFOLDER
lpsf
,
LPITEMIDLIST
pidl
,
DWORD
dwFlags
,
LPSTR
lpstrFileName
);
static
HRESULT
GetName
(
LPSHELLFOLDER
lpsf
,
LPITEMIDLIST
pidl
,
DWORD
dwFlags
,
LP
W
STR
lpstrFileName
);
IShellFolder
*
GetShellFolderFromPidl
(
LPITEMIDLIST
pidlAbs
);
IShellFolder
*
GetShellFolderFromPidl
(
LPITEMIDLIST
pidlAbs
);
LPITEMIDLIST
GetParentPidl
(
LPITEMIDLIST
pidl
);
LPITEMIDLIST
GetParentPidl
(
LPITEMIDLIST
pidl
);
static
LPITEMIDLIST
GetPidlFromName
(
IShellFolder
*
psf
,
LPWSTR
lpcstrFileName
);
static
LPITEMIDLIST
GetPidlFromName
(
IShellFolder
*
psf
,
LPWSTR
lpcstrFileName
);
...
@@ -227,7 +227,6 @@ static void *MemAlloc(UINT size);
...
@@ -227,7 +227,6 @@ static void *MemAlloc(UINT size);
static
void
MemFree
(
void
*
mem
);
static
void
MemFree
(
void
*
mem
);
static
INT_PTR
CALLBACK
FileOpenDlgProc95
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
INT_PTR
CALLBACK
FileOpenDlgProc95
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
LRESULT
SendCustomDlgNotificationMessage
(
HWND
hwndParentDlg
,
UINT
uCode
);
static
INT_PTR
FILEDLG95_HandleCustomDialogMessages
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
INT_PTR
FILEDLG95_HandleCustomDialogMessages
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
BOOL
FILEDLG95_OnOpenMultipleFiles
(
HWND
hwnd
,
LPWSTR
lpstrFileList
,
UINT
nFileCount
,
UINT
sizeUsed
);
static
BOOL
FILEDLG95_OnOpenMultipleFiles
(
HWND
hwnd
,
LPWSTR
lpstrFileList
,
UINT
nFileCount
,
UINT
sizeUsed
);
static
BOOL
BrowseSelectedFolder
(
HWND
hwnd
);
static
BOOL
BrowseSelectedFolder
(
HWND
hwnd
);
...
@@ -275,10 +274,10 @@ static BOOL WINAPI GetFileName95(FileOpenDlgInfos *fodInfos)
...
@@ -275,10 +274,10 @@ static BOOL WINAPI GetFileName95(FileOpenDlgInfos *fodInfos)
/* old style hook messages */
/* old style hook messages */
if
(
IsHooked
(
fodInfos
))
if
(
IsHooked
(
fodInfos
))
{
{
fodInfos
->
HookMsg
.
fileokstring
=
RegisterWindowMessage
A
(
FILEOKSTRINGA
);
fodInfos
->
HookMsg
.
fileokstring
=
RegisterWindowMessage
W
(
FILEOKSTRINGW
);
fodInfos
->
HookMsg
.
lbselchstring
=
RegisterWindowMessage
A
(
LBSELCHSTRINGA
);
fodInfos
->
HookMsg
.
lbselchstring
=
RegisterWindowMessage
W
(
LBSELCHSTRINGW
);
fodInfos
->
HookMsg
.
helpmsgstring
=
RegisterWindowMessage
A
(
HELPMSGSTRINGA
);
fodInfos
->
HookMsg
.
helpmsgstring
=
RegisterWindowMessage
W
(
HELPMSGSTRINGW
);
fodInfos
->
HookMsg
.
sharevistring
=
RegisterWindowMessage
A
(
SHAREVISTRINGA
);
fodInfos
->
HookMsg
.
sharevistring
=
RegisterWindowMessage
W
(
SHAREVISTRINGW
);
}
}
/* Some shell namespace extensions depend on COM being initialized. */
/* Some shell namespace extensions depend on COM being initialized. */
...
@@ -1145,11 +1144,11 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
...
@@ -1145,11 +1144,11 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
int
win2000plus
=
0
;
int
win2000plus
=
0
;
int
win98plus
=
0
;
int
win98plus
=
0
;
int
handledPath
=
FALSE
;
int
handledPath
=
FALSE
;
OSVERSIONINFO
A
osVi
;
OSVERSIONINFO
W
osVi
;
static
const
WCHAR
szwSlash
[]
=
{
'\\'
,
0
};
static
const
WCHAR
szwSlash
[]
=
{
'\\'
,
0
};
static
const
WCHAR
szwStar
[]
=
{
'*'
,
0
};
static
const
WCHAR
szwStar
[]
=
{
'*'
,
0
};
TBBUTTON
tbb
[]
=
static
const
TBBUTTON
tbb
[]
=
{
{
{
0
,
0
,
TBSTATE_ENABLED
,
BTNS_SEP
,
{
0
,
0
},
0
,
0
},
{
0
,
0
,
TBSTATE_ENABLED
,
BTNS_SEP
,
{
0
,
0
},
0
,
0
},
{
VIEW_PARENTFOLDER
,
FCIDM_TB_UPFOLDER
,
TBSTATE_ENABLED
,
BTNS_BUTTON
,
{
0
,
0
},
0
,
0
},
{
VIEW_PARENTFOLDER
,
FCIDM_TB_UPFOLDER
,
TBSTATE_ENABLED
,
BTNS_BUTTON
,
{
0
,
0
},
0
,
0
},
...
@@ -1174,8 +1173,8 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
...
@@ -1174,8 +1173,8 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
TRACE
(
"%p
\n
"
,
fodInfos
);
TRACE
(
"%p
\n
"
,
fodInfos
);
/* Get windows version emulating */
/* Get windows version emulating */
osVi
.
dwOSVersionInfoSize
=
sizeof
(
OSVERSIONINFOA
);
osVi
.
dwOSVersionInfoSize
=
sizeof
(
osVi
);
GetVersionEx
A
(
&
osVi
);
GetVersionEx
W
(
&
osVi
);
if
(
osVi
.
dwPlatformId
==
VER_PLATFORM_WIN32_WINDOWS
)
{
if
(
osVi
.
dwPlatformId
==
VER_PLATFORM_WIN32_WINDOWS
)
{
win98plus
=
((
osVi
.
dwMajorVersion
>
4
)
||
((
osVi
.
dwMajorVersion
==
4
)
&&
(
osVi
.
dwMinorVersion
>
0
)));
win98plus
=
((
osVi
.
dwMajorVersion
>
4
)
||
((
osVi
.
dwMajorVersion
==
4
)
&&
(
osVi
.
dwMinorVersion
>
0
)));
}
else
if
(
osVi
.
dwPlatformId
==
VER_PLATFORM_WIN32_NT
)
{
}
else
if
(
osVi
.
dwPlatformId
==
VER_PLATFORM_WIN32_NT
)
{
...
@@ -1214,15 +1213,15 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
...
@@ -1214,15 +1213,15 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
rectTB
.
right
-
rectTB
.
left
,
rectTB
.
bottom
-
rectTB
.
top
,
rectTB
.
right
-
rectTB
.
left
,
rectTB
.
bottom
-
rectTB
.
top
,
hwnd
,
(
HMENU
)
IDC_TOOLBAR
,
COMDLG32_hInstance
,
NULL
);
hwnd
,
(
HMENU
)
IDC_TOOLBAR
,
COMDLG32_hInstance
,
NULL
);
SendMessage
A
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_BUTTONSTRUCTSIZE
,
(
WPARAM
)
sizeof
(
TBBUTTON
),
0
);
SendMessage
W
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_BUTTONSTRUCTSIZE
,
sizeof
(
TBBUTTON
),
0
);
/* FIXME: use TB_LOADIMAGES when implemented */
/* FIXME: use TB_LOADIMAGES when implemented */
/* SendMessage
A(fodInfos->DlgInfos.hwndTB, TB_LOADIMAGES, (WPARAM)
IDB_VIEW_SMALL_COLOR, HINST_COMMCTRL);*/
/* SendMessage
W(fodInfos->DlgInfos.hwndTB, TB_LOADIMAGES,
IDB_VIEW_SMALL_COLOR, HINST_COMMCTRL);*/
SendMessage
A
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_ADDBITMAP
,
(
WPARAM
)
12
,
(
LPARAM
)
&
tba
[
0
]);
SendMessage
W
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_ADDBITMAP
,
12
,
(
LPARAM
)
&
tba
[
0
]);
SendMessage
A
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_ADDBITMAP
,
(
WPARAM
)
1
,
(
LPARAM
)
&
tba
[
1
]);
SendMessage
W
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_ADDBITMAP
,
1
,
(
LPARAM
)
&
tba
[
1
]);
SendMessage
A
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_ADDBUTTONSA
,
(
WPARAM
)
9
,
(
LPARAM
)
&
tbb
);
SendMessage
W
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_ADDBUTTONSW
,
9
,
(
LPARAM
)
&
tbb
);
SendMessage
A
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_AUTOSIZE
,
0
,
0
);
SendMessage
W
(
fodInfos
->
DlgInfos
.
hwndTB
,
TB_AUTOSIZE
,
0
,
0
);
/* Set the window text with the text specified in the OPENFILENAME structure */
/* Set the window text with the text specified in the OPENFILENAME structure */
if
(
fodInfos
->
title
)
if
(
fodInfos
->
title
)
...
@@ -1419,7 +1418,7 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
...
@@ -1419,7 +1418,7 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
/* Must the open as read only check box be checked ?*/
/* Must the open as read only check box be checked ?*/
if
(
fodInfos
->
ofnInfos
->
Flags
&
OFN_READONLY
)
if
(
fodInfos
->
ofnInfos
->
Flags
&
OFN_READONLY
)
{
{
SendDlgItemMessage
A
(
hwnd
,
IDC_OPENREADONLY
,
BM_SETCHECK
,(
WPARAM
)
TRUE
,
0
);
SendDlgItemMessage
W
(
hwnd
,
IDC_OPENREADONLY
,
BM_SETCHECK
,
TRUE
,
0
);
}
}
/* Must the open as read only check box be hidden? */
/* Must the open as read only check box be hidden? */
...
@@ -2031,7 +2030,7 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
...
@@ -2031,7 +2030,7 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
WCHAR
*
ext
=
NULL
;
WCHAR
*
ext
=
NULL
;
/* update READONLY check box flag */
/* update READONLY check box flag */
if
((
SendMessage
A
(
GetDlgItem
(
hwnd
,
IDC_OPENREADONLY
),
BM_GETCHECK
,
0
,
0
)
&
0x03
)
==
BST_CHECKED
)
if
((
SendMessage
W
(
GetDlgItem
(
hwnd
,
IDC_OPENREADONLY
),
BM_GETCHECK
,
0
,
0
)
&
0x03
)
==
BST_CHECKED
)
fodInfos
->
ofnInfos
->
Flags
|=
OFN_READONLY
;
fodInfos
->
ofnInfos
->
Flags
|=
OFN_READONLY
;
else
else
fodInfos
->
ofnInfos
->
Flags
&=
~
OFN_READONLY
;
fodInfos
->
ofnInfos
->
Flags
&=
~
OFN_READONLY
;
...
@@ -3029,8 +3028,8 @@ void FILEDLG95_FILENAME_FillFromSelection (HWND hwnd)
...
@@ -3029,8 +3028,8 @@ void FILEDLG95_FILENAME_FillFromSelection (HWND hwnd)
FileOpenDlgInfos
*
fodInfos
;
FileOpenDlgInfos
*
fodInfos
;
LPITEMIDLIST
pidl
;
LPITEMIDLIST
pidl
;
UINT
nFiles
=
0
,
nFileToOpen
,
nFileSelected
,
nLength
=
0
;
UINT
nFiles
=
0
,
nFileToOpen
,
nFileSelected
,
nLength
=
0
;
char
lpstrTemp
[
MAX_PATH
];
WCHAR
lpstrTemp
[
MAX_PATH
];
LP
STR
lpstrAllFile
=
NULL
,
lpstrCurrFile
=
NULL
;
LP
WSTR
lpstrAllFile
,
lpstrCurrFile
;
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
fodInfos
=
(
FileOpenDlgInfos
*
)
GetPropA
(
hwnd
,
FileOpenDlgInfosStr
);
fodInfos
=
(
FileOpenDlgInfos
*
)
GetPropA
(
hwnd
,
FileOpenDlgInfosStr
);
...
@@ -3054,7 +3053,7 @@ void FILEDLG95_FILENAME_FillFromSelection (HWND hwnd)
...
@@ -3054,7 +3053,7 @@ void FILEDLG95_FILENAME_FillFromSelection (HWND hwnd)
if
(
!
IsPidlFolder
(
fodInfos
->
Shell
.
FOIShellFolder
,
pidl
)
)
/* Ignore folders */
if
(
!
IsPidlFolder
(
fodInfos
->
Shell
.
FOIShellFolder
,
pidl
)
)
/* Ignore folders */
{
{
nLength
+=
strlen
(
lpstrTemp
)
+
3
;
nLength
+=
lstrlenW
(
lpstrTemp
)
+
3
;
nFiles
++
;
nFiles
++
;
}
}
COMDLG32_SHFree
(
pidl
);
COMDLG32_SHFree
(
pidl
);
...
@@ -3064,8 +3063,7 @@ void FILEDLG95_FILENAME_FillFromSelection (HWND hwnd)
...
@@ -3064,8 +3063,7 @@ void FILEDLG95_FILENAME_FillFromSelection (HWND hwnd)
/* allocate the buffer */
/* allocate the buffer */
if
(
nFiles
<=
1
)
nLength
=
MAX_PATH
;
if
(
nFiles
<=
1
)
nLength
=
MAX_PATH
;
lpstrAllFile
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
nLength
);
lpstrAllFile
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
nLength
*
sizeof
(
WCHAR
));
lpstrAllFile
[
0
]
=
'\0'
;
/* Generate the string for the edit control */
/* Generate the string for the edit control */
if
(
nFiles
>=
1
)
if
(
nFiles
>=
1
)
...
@@ -3086,55 +3084,56 @@ void FILEDLG95_FILENAME_FillFromSelection (HWND hwnd)
...
@@ -3086,55 +3084,56 @@ void FILEDLG95_FILENAME_FillFromSelection (HWND hwnd)
if
(
nFiles
>
1
)
if
(
nFiles
>
1
)
{
{
*
lpstrCurrFile
++
=
'\"'
;
*
lpstrCurrFile
++
=
'\"'
;
strcpy
(
lpstrCurrFile
,
lpstrTemp
);
lstrcpyW
(
lpstrCurrFile
,
lpstrTemp
);
lpstrCurrFile
+=
strlen
(
lpstrTemp
);
lpstrCurrFile
+=
lstrlenW
(
lpstrTemp
);
strcpy
(
lpstrCurrFile
,
"
\"
"
);
*
lpstrCurrFile
++
=
'\"'
;
lpstrCurrFile
+=
2
;
*
lpstrCurrFile
++
=
' '
;
*
lpstrCurrFile
=
0
;
}
}
else
else
{
{
strcpy
(
lpstrAllFile
,
lpstrTemp
);
lstrcpyW
(
lpstrAllFile
,
lpstrTemp
);
}
}
}
}
COMDLG32_SHFree
(
(
LPVOID
)
pidl
);
COMDLG32_SHFree
(
(
LPVOID
)
pidl
);
}
}
}
}
SetWindowText
A
(
fodInfos
->
DlgInfos
.
hwndFileName
,
lpstrAllFile
);
SetWindowText
W
(
fodInfos
->
DlgInfos
.
hwndFileName
,
lpstrAllFile
);
/* Select the file name like Windows does */
/* Select the file name like Windows does */
SendMessage
A
(
fodInfos
->
DlgInfos
.
hwndFileName
,
EM_SETSEL
,
(
WPARAM
)
0
,
(
LPARAM
)
-
1
);
SendMessage
W
(
fodInfos
->
DlgInfos
.
hwndFileName
,
EM_SETSEL
,
0
,
(
LPARAM
)
-
1
);
}
}
HeapFree
(
GetProcessHeap
(),
0
,
lpstrAllFile
);
HeapFree
(
GetProcessHeap
(),
0
,
lpstrAllFile
);
}
}
/* copied from shell32 to avoid linking to it
/* copied from shell32 to avoid linking to it
* FIXME: why? shell32 is already linked
* Although shell32 is already linked the behaviour of exported StrRetToStrN
* is dependent on whether emulated OS is unicode or not.
*/
*/
static
HRESULT
COMDLG32_StrRetToStrN
A
(
LPVOID
dest
,
DWORD
len
,
LPSTRRET
src
,
LPITEMIDLIST
pidl
)
static
HRESULT
COMDLG32_StrRetToStrN
W
(
LPWSTR
dest
,
DWORD
len
,
LPSTRRET
src
,
LPITEMIDLIST
pidl
)
{
{
switch
(
src
->
uType
)
switch
(
src
->
uType
)
{
{
case
STRRET_WSTR
:
case
STRRET_WSTR
:
WideCharToMultiByte
(
CP_ACP
,
0
,
src
->
u
.
pOleStr
,
-
1
,
(
LPSTR
)
dest
,
len
,
NULL
,
NULL
);
lstrcpynW
(
dest
,
src
->
u
.
pOleStr
,
len
);
COMDLG32_SHFree
(
src
->
u
.
pOleStr
);
COMDLG32_SHFree
(
src
->
u
.
pOleStr
);
break
;
break
;
case
STRRET_CSTR
:
case
STRRET_CSTR
:
lstrcpynA
((
LPSTR
)
dest
,
src
->
u
.
cStr
,
len
);
if
(
!
MultiByteToWideChar
(
CP_ACP
,
0
,
src
->
u
.
cStr
,
-
1
,
dest
,
len
)
&&
len
)
dest
[
len
-
1
]
=
0
;
break
;
break
;
case
STRRET_OFFSET
:
case
STRRET_OFFSET
:
lstrcpynA
((
LPSTR
)
dest
,
((
LPCSTR
)
&
pidl
->
mkid
)
+
src
->
u
.
uOffset
,
len
);
if
(
!
MultiByteToWideChar
(
CP_ACP
,
0
,
((
LPCSTR
)
&
pidl
->
mkid
)
+
src
->
u
.
uOffset
,
-
1
,
dest
,
len
)
&&
len
)
dest
[
len
-
1
]
=
0
;
break
;
break
;
default:
default:
FIXME
(
"unknown type!
\n
"
);
FIXME
(
"unknown type %x!
\n
"
,
src
->
uType
);
if
(
len
)
if
(
len
)
*
dest
=
'\0'
;
{
return
E_FAIL
;
*
(
LPSTR
)
dest
=
'\0'
;
}
return
(
E_FAIL
);
}
}
return
S_OK
;
return
S_OK
;
}
}
...
@@ -3315,7 +3314,7 @@ UINT GetNumSelected( IDataObject *doSelected )
...
@@ -3315,7 +3314,7 @@ UINT GetNumSelected( IDataObject *doSelected )
* E_FAIL otherwise
* E_FAIL otherwise
*/
*/
static
HRESULT
GetName
(
LPSHELLFOLDER
lpsf
,
LPITEMIDLIST
pidl
,
DWORD
dwFlags
,
LPSTR
lpstrFileName
)
static
HRESULT
GetName
(
LPSHELLFOLDER
lpsf
,
LPITEMIDLIST
pidl
,
DWORD
dwFlags
,
LP
W
STR
lpstrFileName
)
{
{
STRRET
str
;
STRRET
str
;
HRESULT
hRes
;
HRESULT
hRes
;
...
@@ -3333,7 +3332,7 @@ static HRESULT GetName(LPSHELLFOLDER lpsf, LPITEMIDLIST pidl,DWORD dwFlags,LPSTR
...
@@ -3333,7 +3332,7 @@ static HRESULT GetName(LPSHELLFOLDER lpsf, LPITEMIDLIST pidl,DWORD dwFlags,LPSTR
/* Get the display name of the pidl relative to the folder */
/* Get the display name of the pidl relative to the folder */
if
(
SUCCEEDED
(
hRes
=
IShellFolder_GetDisplayNameOf
(
lpsf
,
pidl
,
dwFlags
,
&
str
)))
if
(
SUCCEEDED
(
hRes
=
IShellFolder_GetDisplayNameOf
(
lpsf
,
pidl
,
dwFlags
,
&
str
)))
{
{
return
COMDLG32_StrRetToStrN
A
(
lpstrFileName
,
MAX_PATH
,
&
str
,
pidl
);
return
COMDLG32_StrRetToStrN
W
(
lpstrFileName
,
MAX_PATH
,
&
str
,
pidl
);
}
}
return
E_FAIL
;
return
E_FAIL
;
}
}
...
@@ -3762,7 +3761,7 @@ static BOOL GetFileName31A(LPOPENFILENAMEA lpofn, /* addess of structure with da
...
@@ -3762,7 +3761,7 @@ static BOOL GetFileName31A(LPOPENFILENAMEA lpofn, /* addess of structure with da
lfs
=
FD31_AllocPrivate
((
LPARAM
)
lpofn
,
dlgType
,
&
callbacks
,
(
DWORD
)
FALSE
);
lfs
=
FD31_AllocPrivate
((
LPARAM
)
lpofn
,
dlgType
,
&
callbacks
,
(
DWORD
)
FALSE
);
if
(
lfs
)
if
(
lfs
)
{
{
hInst
=
(
HINSTANCE
)
GetWindowLongPtr
A
(
lpofn
->
hwndOwner
,
GWLP_HINSTANCE
);
hInst
=
(
HINSTANCE
)
GetWindowLongPtr
W
(
lpofn
->
hwndOwner
,
GWLP_HINSTANCE
);
bRet
=
DialogBoxIndirectParamA
(
hInst
,
lfs
->
template
,
lpofn
->
hwndOwner
,
bRet
=
DialogBoxIndirectParamA
(
hInst
,
lfs
->
template
,
lpofn
->
hwndOwner
,
FD32_FileOpenDlgProc
,
(
LPARAM
)
lfs
);
FD32_FileOpenDlgProc
,
(
LPARAM
)
lfs
);
FD31_DestroyPrivate
(
lfs
);
FD31_DestroyPrivate
(
lfs
);
...
...
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