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
bbd8706e
Commit
bbd8706e
authored
Jun 19, 2008
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Jun 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Implement CDM_GETFOLDERIDLIST.
parent
30899341
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
1 deletion
+24
-1
cdlg.h
dlls/comdlg32/cdlg.h
+1
-0
cdlg32.c
dlls/comdlg32/cdlg32.c
+2
-0
filedlg.c
dlls/comdlg32/filedlg.c
+6
-0
filedlg.c
dlls/comdlg32/tests/filedlg.c
+14
-0
commdlg.h
include/commdlg.h
+1
-1
No files found.
dlls/comdlg32/cdlg.h
View file @
bbd8706e
...
...
@@ -177,6 +177,7 @@ extern LPITEMIDLIST (WINAPI *COMDLG32_PIDL_ILCombine)(LPCITEMIDLIST,LPCITEMIDLIS
extern
LPITEMIDLIST
(
WINAPI
*
COMDLG32_PIDL_ILGetNext
)(
LPITEMIDLIST
);
extern
BOOL
(
WINAPI
*
COMDLG32_PIDL_ILRemoveLastID
)(
LPCITEMIDLIST
);
extern
BOOL
(
WINAPI
*
COMDLG32_PIDL_ILIsEqual
)(
LPCITEMIDLIST
,
LPCITEMIDLIST
);
extern
UINT
(
WINAPI
*
COMDLG32_PIDL_ILGetSize
)(
LPCITEMIDLIST
);
/* SHELL */
extern
LPVOID
(
WINAPI
*
COMDLG32_SHAlloc
)(
DWORD
);
...
...
dlls/comdlg32/cdlg32.c
View file @
bbd8706e
...
...
@@ -47,6 +47,7 @@ LPITEMIDLIST (WINAPI *COMDLG32_PIDL_ILCombine)(LPCITEMIDLIST,LPCITEMIDLIST);
LPITEMIDLIST
(
WINAPI
*
COMDLG32_PIDL_ILGetNext
)(
LPITEMIDLIST
);
BOOL
(
WINAPI
*
COMDLG32_PIDL_ILRemoveLastID
)(
LPCITEMIDLIST
);
BOOL
(
WINAPI
*
COMDLG32_PIDL_ILIsEqual
)(
LPCITEMIDLIST
,
LPCITEMIDLIST
);
UINT
(
WINAPI
*
COMDLG32_PIDL_ILGetSize
)(
LPCITEMIDLIST
);
/* SHELL */
LPVOID
(
WINAPI
*
COMDLG32_SHAlloc
)(
DWORD
);
...
...
@@ -95,6 +96,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD Reason, LPVOID Reserved)
GPA
(
COMDLG32_PIDL_ILGetNext
,
SHELL32_hInstance
,
(
LPCSTR
)
153L
);
GPA
(
COMDLG32_PIDL_ILClone
,
SHELL32_hInstance
,
(
LPCSTR
)
18L
);
GPA
(
COMDLG32_PIDL_ILRemoveLastID
,
SHELL32_hInstance
,
(
LPCSTR
)
17L
);
GPA
(
COMDLG32_PIDL_ILGetSize
,
SHELL32_hInstance
,
(
LPCSTR
)
152L
);
/* SHELL */
...
...
dlls/comdlg32/filedlg.c
View file @
bbd8706e
...
...
@@ -928,6 +928,12 @@ static INT_PTR FILEDLG95_HandleCustomDialogMessages(HWND hwnd, UINT uMsg, WPARAM
retval
=
lstrlenW
(
lpstrPath
);
break
;
case
CDM_GETFOLDERIDLIST
:
retval
=
COMDLG32_PIDL_ILGetSize
(
fodInfos
->
ShellInfos
.
pidlAbsCurrent
);
if
(
retval
<=
wParam
)
memcpy
((
void
*
)
lParam
,
fodInfos
->
ShellInfos
.
pidlAbsCurrent
,
retval
);
break
;
case
CDM_GETSPEC
:
TRACE
(
"CDM_GETSPEC:
\n
"
);
retval
=
SendMessageW
(
fodInfos
->
DlgInfos
.
hwndFileName
,
WM_GETTEXTLENGTH
,
0
,
0
)
+
1
;
...
...
dlls/comdlg32/tests/filedlg.c
View file @
bbd8706e
...
...
@@ -35,6 +35,16 @@ static UINT CALLBACK OFNHookProc( HWND hDlg, UINT msg, WPARAM wParam, LPARAM lPa
if
(
nmh
->
code
==
CDN_INITDONE
)
{
PostMessage
(
GetParent
(
hDlg
),
WM_COMMAND
,
IDCANCEL
,
FALSE
);
}
else
if
(
nmh
->
code
==
CDN_FOLDERCHANGE
)
{
char
buf
[
1024
];
int
ret
;
memset
(
buf
,
0x66
,
sizeof
(
buf
));
ret
=
SendMessage
(
GetParent
(
hDlg
),
CDM_GETFOLDERIDLIST
,
5
,
(
LPARAM
)
buf
);
ok
(
ret
>
0
,
"CMD_GETFOLDERIDLIST not implemented
\n
"
);
if
(
ret
>
5
)
ok
(
buf
[
0
]
==
0x66
&&
buf
[
1
]
==
0x66
,
"CMD_GETFOLDERIDLIST: The buffer was touched on failure
\n
"
);
}
}
...
...
@@ -47,6 +57,9 @@ static void test_DialogCancel(void)
OPENFILENAMEA
ofn
;
BOOL
result
;
char
szFileName
[
MAX_PATH
]
=
""
;
char
szInitialDir
[
MAX_PATH
];
GetWindowsDirectory
(
szInitialDir
,
MAX_PATH
);
ZeroMemory
(
&
ofn
,
sizeof
(
ofn
));
...
...
@@ -58,6 +71,7 @@ static void test_DialogCancel(void)
ofn
.
Flags
=
OFN_EXPLORER
|
OFN_FILEMUSTEXIST
|
OFN_HIDEREADONLY
|
OFN_ENABLEHOOK
;
ofn
.
lpstrDefExt
=
"txt"
;
ofn
.
lpfnHook
=
(
LPOFNHOOKPROC
)
OFNHookProc
;
ofn
.
lpstrInitialDir
=
szInitialDir
;
PrintDlgA
(
NULL
);
ok
(
CDERR_INITIALIZATION
==
CommDlgExtendedError
(),
"expected %d, got %d
\n
"
,
...
...
include/commdlg.h
View file @
bbd8706e
...
...
@@ -435,7 +435,7 @@ static const WCHAR HELPMSGSTRINGW[] = { 'c','o','m','m','d','l','g','_',
#define CDM_GETSPEC (CDM_FIRST + 0x0000)
#define CDM_GETFILEPATH (CDM_FIRST + 0x0001)
#define CDM_GETFOLDERPATH (CDM_FIRST + 0x0002)
#define CDM_GETFOLDER
LIST
(CDM_FIRST + 0x0003)
#define CDM_GETFOLDER
IDLIST
(CDM_FIRST + 0x0003)
#define CDM_SETCONTROLTEXT (CDM_FIRST + 0x0004)
#define CDM_HIDECONTROL (CDM_FIRST + 0x0005)
#define CDM_SETDEFEXT (CDM_FIRST + 0x0006)
...
...
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