Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
01432d71
Commit
01432d71
authored
Sep 01, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add initial implementation of the DirectoryList control.
parent
8f691adf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
0 deletions
+55
-0
dialog.c
dlls/msi/dialog.c
+55
-0
No files found.
dlls/msi/dialog.c
View file @
01432d71
...
@@ -2106,6 +2106,58 @@ static UINT msi_dialog_directory_combo( msi_dialog *dialog, MSIRECORD *rec )
...
@@ -2106,6 +2106,58 @@ static UINT msi_dialog_directory_combo( msi_dialog *dialog, MSIRECORD *rec )
/******************** Directory List ***************************************/
/******************** Directory List ***************************************/
static
void
msi_dialog_update_directory_list
(
msi_dialog
*
dialog
,
msi_control
*
control
)
{
WCHAR
dir_spec
[
MAX_PATH
];
WIN32_FIND_DATAW
wfd
;
LPWSTR
prop
,
path
;
BOOL
indirect
;
LVITEMW
item
;
HANDLE
file
;
static
const
WCHAR
asterisk
[]
=
{
'*'
,
0
};
static
const
WCHAR
dot
[]
=
{
'.'
,
0
};
static
const
WCHAR
dotdot
[]
=
{
'.'
,
'.'
,
0
};
if
(
!
control
&&
!
(
control
=
msi_dialog_find_control_by_type
(
dialog
,
szDirectoryList
)))
return
;
/* clear the list-view */
SendMessageW
(
control
->
hwnd
,
LVM_DELETEALLITEMS
,
0
,
0
);
indirect
=
control
->
attributes
&
msidbControlAttributesIndirect
;
prop
=
msi_dialog_dup_property
(
dialog
,
control
->
property
,
indirect
);
path
=
msi_dup_property
(
dialog
->
package
,
prop
);
lstrcpyW
(
dir_spec
,
path
);
lstrcatW
(
dir_spec
,
asterisk
);
file
=
FindFirstFileW
(
dir_spec
,
&
wfd
);
if
(
file
==
INVALID_HANDLE_VALUE
)
return
;
do
{
if
(
wfd
.
dwFileAttributes
!=
FILE_ATTRIBUTE_DIRECTORY
)
continue
;
if
(
!
lstrcmpW
(
wfd
.
cFileName
,
dot
)
||
!
lstrcmpW
(
wfd
.
cFileName
,
dotdot
)
)
continue
;
item
.
mask
=
LVIF_TEXT
;
item
.
cchTextMax
=
MAX_PATH
;
item
.
iItem
=
0
;
item
.
iSubItem
=
0
;
item
.
pszText
=
wfd
.
cFileName
;
SendMessageW
(
control
->
hwnd
,
LVM_INSERTITEMW
,
0
,
(
LPARAM
)
&
item
);
}
while
(
FindNextFileW
(
file
,
&
wfd
)
);
msi_free
(
prop
);
msi_free
(
path
);
FindClose
(
file
);
}
UINT
msi_dialog_directorylist_up
(
msi_dialog
*
dialog
)
UINT
msi_dialog_directorylist_up
(
msi_dialog
*
dialog
)
{
{
msi_control
*
control
;
msi_control
*
control
;
...
@@ -2125,6 +2177,7 @@ UINT msi_dialog_directorylist_up( msi_dialog *dialog )
...
@@ -2125,6 +2177,7 @@ UINT msi_dialog_directorylist_up( msi_dialog *dialog )
MSI_SetPropertyW
(
dialog
->
package
,
prop
,
path
);
MSI_SetPropertyW
(
dialog
->
package
,
prop
,
path
);
msi_dialog_update_directory_list
(
dialog
,
NULL
);
msi_dialog_update_directory_combo
(
dialog
,
NULL
);
msi_dialog_update_directory_combo
(
dialog
,
NULL
);
msi_dialog_update_pathedit
(
dialog
,
NULL
);
msi_dialog_update_pathedit
(
dialog
,
NULL
);
...
@@ -2151,6 +2204,8 @@ static UINT msi_dialog_directory_list( msi_dialog *dialog, MSIRECORD *rec )
...
@@ -2151,6 +2204,8 @@ static UINT msi_dialog_directory_list( msi_dialog *dialog, MSIRECORD *rec )
prop
=
MSI_RecordGetString
(
rec
,
9
);
prop
=
MSI_RecordGetString
(
rec
,
9
);
control
->
property
=
msi_dialog_dup_property
(
dialog
,
prop
,
FALSE
);
control
->
property
=
msi_dialog_dup_property
(
dialog
,
prop
,
FALSE
);
msi_dialog_update_directory_list
(
dialog
,
control
);
return
ERROR_SUCCESS
;
return
ERROR_SUCCESS
;
}
}
...
...
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