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
4db3b1bb
Commit
4db3b1bb
authored
Sep 25, 2007
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Sep 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: shlview: Change some more ANSI calls to Unicode.
parent
212c3604
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
shlview.c
dlls/shell32/shlview.c
+22
-22
No files found.
dlls/shell32/shlview.c
View file @
4db3b1bb
...
@@ -292,8 +292,8 @@ static void SetStyle(IShellViewImpl * This, DWORD dwAdd, DWORD dwRemove)
...
@@ -292,8 +292,8 @@ static void SetStyle(IShellViewImpl * This, DWORD dwAdd, DWORD dwRemove)
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
tmpstyle
=
GetWindowLong
A
(
This
->
hWndList
,
GWL_STYLE
);
tmpstyle
=
GetWindowLong
W
(
This
->
hWndList
,
GWL_STYLE
);
SetWindowLong
A
(
This
->
hWndList
,
GWL_STYLE
,
dwAdd
|
(
tmpstyle
&
~
dwRemove
));
SetWindowLong
W
(
This
->
hWndList
,
GWL_STYLE
,
dwAdd
|
(
tmpstyle
&
~
dwRemove
));
}
}
/**********************************************************
/**********************************************************
...
@@ -528,11 +528,11 @@ static int LV_FindItemByPidl(
...
@@ -528,11 +528,11 @@ static int LV_FindItemByPidl(
IShellViewImpl
*
This
,
IShellViewImpl
*
This
,
LPCITEMIDLIST
pidl
)
LPCITEMIDLIST
pidl
)
{
{
LVITEM
A
lvItem
;
LVITEM
W
lvItem
;
lvItem
.
iSubItem
=
0
;
lvItem
.
iSubItem
=
0
;
lvItem
.
mask
=
LVIF_PARAM
;
lvItem
.
mask
=
LVIF_PARAM
;
for
(
lvItem
.
iItem
=
0
;
for
(
lvItem
.
iItem
=
0
;
SendMessage
A
(
This
->
hWndList
,
LVM_GETITEMA
,
0
,
(
LPARAM
)
&
lvItem
);
SendMessage
W
(
This
->
hWndList
,
LVM_GETITEMW
,
0
,
(
LPARAM
)
&
lvItem
);
lvItem
.
iItem
++
)
lvItem
.
iItem
++
)
{
{
LPITEMIDLIST
currentpidl
=
(
LPITEMIDLIST
)
lvItem
.
lParam
;
LPITEMIDLIST
currentpidl
=
(
LPITEMIDLIST
)
lvItem
.
lParam
;
...
@@ -550,7 +550,7 @@ static int LV_FindItemByPidl(
...
@@ -550,7 +550,7 @@ static int LV_FindItemByPidl(
*/
*/
static
BOOLEAN
LV_AddItem
(
IShellViewImpl
*
This
,
LPCITEMIDLIST
pidl
)
static
BOOLEAN
LV_AddItem
(
IShellViewImpl
*
This
,
LPCITEMIDLIST
pidl
)
{
{
LVITEM
A
lvItem
;
LVITEM
W
lvItem
;
TRACE
(
"(%p)(pidl=%p)
\n
"
,
This
,
pidl
);
TRACE
(
"(%p)(pidl=%p)
\n
"
,
This
,
pidl
);
...
@@ -558,9 +558,9 @@ static BOOLEAN LV_AddItem(IShellViewImpl * This, LPCITEMIDLIST pidl)
...
@@ -558,9 +558,9 @@ static BOOLEAN LV_AddItem(IShellViewImpl * This, LPCITEMIDLIST pidl)
lvItem
.
iItem
=
ListView_GetItemCount
(
This
->
hWndList
);
/*add the item to the end of the list*/
lvItem
.
iItem
=
ListView_GetItemCount
(
This
->
hWndList
);
/*add the item to the end of the list*/
lvItem
.
iSubItem
=
0
;
lvItem
.
iSubItem
=
0
;
lvItem
.
lParam
=
(
LPARAM
)
ILClone
(
ILFindLastID
(
pidl
));
/*set the item's data*/
lvItem
.
lParam
=
(
LPARAM
)
ILClone
(
ILFindLastID
(
pidl
));
/*set the item's data*/
lvItem
.
pszText
=
LPSTR_TEXTCALLBACK
A
;
/*get text on a callback basis*/
lvItem
.
pszText
=
LPSTR_TEXTCALLBACK
W
;
/*get text on a callback basis*/
lvItem
.
iImage
=
I_IMAGECALLBACK
;
/*get the image on a callback basis*/
lvItem
.
iImage
=
I_IMAGECALLBACK
;
/*get the image on a callback basis*/
return
(
-
1
==
ListView_InsertItem
A
(
This
->
hWndList
,
&
lvItem
))
?
FALSE
:
TRUE
;
return
(
-
1
==
ListView_InsertItem
W
(
This
->
hWndList
,
&
lvItem
))
?
FALSE
:
TRUE
;
}
}
/**********************************************************
/**********************************************************
...
@@ -582,7 +582,7 @@ static BOOLEAN LV_DeleteItem(IShellViewImpl * This, LPCITEMIDLIST pidl)
...
@@ -582,7 +582,7 @@ static BOOLEAN LV_DeleteItem(IShellViewImpl * This, LPCITEMIDLIST pidl)
static
BOOLEAN
LV_RenameItem
(
IShellViewImpl
*
This
,
LPCITEMIDLIST
pidlOld
,
LPCITEMIDLIST
pidlNew
)
static
BOOLEAN
LV_RenameItem
(
IShellViewImpl
*
This
,
LPCITEMIDLIST
pidlOld
,
LPCITEMIDLIST
pidlNew
)
{
{
int
nItem
;
int
nItem
;
LVITEM
A
lvItem
;
LVITEM
W
lvItem
;
TRACE
(
"(%p)(pidlold=%p pidlnew=%p)
\n
"
,
This
,
pidlOld
,
pidlNew
);
TRACE
(
"(%p)(pidlold=%p pidlnew=%p)
\n
"
,
This
,
pidlOld
,
pidlNew
);
...
@@ -591,14 +591,14 @@ static BOOLEAN LV_RenameItem(IShellViewImpl * This, LPCITEMIDLIST pidlOld, LPCIT
...
@@ -591,14 +591,14 @@ static BOOLEAN LV_RenameItem(IShellViewImpl * This, LPCITEMIDLIST pidlOld, LPCIT
{
{
lvItem
.
mask
=
LVIF_PARAM
;
/* only the pidl */
lvItem
.
mask
=
LVIF_PARAM
;
/* only the pidl */
lvItem
.
iItem
=
nItem
;
lvItem
.
iItem
=
nItem
;
SendMessage
A
(
This
->
hWndList
,
LVM_GETITEMA
,
0
,
(
LPARAM
)
&
lvItem
);
SendMessage
W
(
This
->
hWndList
,
LVM_GETITEMW
,
0
,
(
LPARAM
)
&
lvItem
);
SHFree
((
LPITEMIDLIST
)
lvItem
.
lParam
);
SHFree
((
LPITEMIDLIST
)
lvItem
.
lParam
);
lvItem
.
mask
=
LVIF_PARAM
;
lvItem
.
mask
=
LVIF_PARAM
;
lvItem
.
iItem
=
nItem
;
lvItem
.
iItem
=
nItem
;
lvItem
.
lParam
=
(
LPARAM
)
ILClone
(
ILFindLastID
(
pidlNew
));
/* set the item's data */
lvItem
.
lParam
=
(
LPARAM
)
ILClone
(
ILFindLastID
(
pidlNew
));
/* set the item's data */
SendMessage
A
(
This
->
hWndList
,
LVM_SETITEMA
,
0
,
(
LPARAM
)
&
lvItem
);
SendMessage
W
(
This
->
hWndList
,
LVM_SETITEMW
,
0
,
(
LPARAM
)
&
lvItem
);
SendMessage
A
(
This
->
hWndList
,
LVM_UPDATE
,
nItem
,
0
);
SendMessage
W
(
This
->
hWndList
,
LVM_UPDATE
,
nItem
,
0
);
return
TRUE
;
/* FIXME: better handling */
return
TRUE
;
/* FIXME: better handling */
}
}
return
FALSE
;
return
FALSE
;
...
@@ -721,8 +721,8 @@ static LRESULT ShellView_OnCreate(IShellViewImpl * This)
...
@@ -721,8 +721,8 @@ static LRESULT ShellView_OnCreate(IShellViewImpl * This)
* ShellView_BuildFileMenu()
* ShellView_BuildFileMenu()
*/
*/
static
HMENU
ShellView_BuildFileMenu
(
IShellViewImpl
*
This
)
static
HMENU
ShellView_BuildFileMenu
(
IShellViewImpl
*
This
)
{
CHAR
szText
[
MAX_PATH
];
{
W
CHAR
szText
[
MAX_PATH
];
MENUITEMINFO
A
mii
;
MENUITEMINFO
W
mii
;
int
nTools
,
i
;
int
nTools
,
i
;
HMENU
hSubMenu
;
HMENU
hSubMenu
;
...
@@ -736,7 +736,7 @@ static HMENU ShellView_BuildFileMenu(IShellViewImpl * This)
...
@@ -736,7 +736,7 @@ static HMENU ShellView_BuildFileMenu(IShellViewImpl * This)
/*add the menu items*/
/*add the menu items*/
for
(
i
=
0
;
i
<
nTools
;
i
++
)
for
(
i
=
0
;
i
<
nTools
;
i
++
)
{
{
LoadString
A
(
shell32_hInstance
,
Tools
[
i
].
idMenuString
,
szText
,
MAX_PATH
);
LoadString
W
(
shell32_hInstance
,
Tools
[
i
].
idMenuString
,
szText
,
MAX_PATH
);
ZeroMemory
(
&
mii
,
sizeof
(
mii
));
ZeroMemory
(
&
mii
,
sizeof
(
mii
));
mii
.
cbSize
=
sizeof
(
mii
);
mii
.
cbSize
=
sizeof
(
mii
);
...
@@ -754,7 +754,7 @@ static HMENU ShellView_BuildFileMenu(IShellViewImpl * This)
...
@@ -754,7 +754,7 @@ static HMENU ShellView_BuildFileMenu(IShellViewImpl * This)
mii
.
fType
=
MFT_SEPARATOR
;
mii
.
fType
=
MFT_SEPARATOR
;
}
}
/* tack This item onto the end of the menu */
/* tack This item onto the end of the menu */
InsertMenuItem
A
(
hSubMenu
,
(
UINT
)
-
1
,
TRUE
,
&
mii
);
InsertMenuItem
W
(
hSubMenu
,
(
UINT
)
-
1
,
TRUE
,
&
mii
);
}
}
}
}
TRACE
(
"-- return (menu=%p)
\n
"
,
hSubMenu
);
TRACE
(
"-- return (menu=%p)
\n
"
,
hSubMenu
);
...
@@ -810,7 +810,7 @@ static void ShellView_MergeViewMenu(IShellViewImpl * This, HMENU hSubMenu)
...
@@ -810,7 +810,7 @@ static void ShellView_MergeViewMenu(IShellViewImpl * This, HMENU hSubMenu)
*/
*/
static
UINT
ShellView_GetSelections
(
IShellViewImpl
*
This
)
static
UINT
ShellView_GetSelections
(
IShellViewImpl
*
This
)
{
{
LVITEM
A
lvItem
;
LVITEM
W
lvItem
;
UINT
i
=
0
;
UINT
i
=
0
;
SHFree
(
This
->
apidl
);
SHFree
(
This
->
apidl
);
...
@@ -829,7 +829,7 @@ static UINT ShellView_GetSelections(IShellViewImpl * This)
...
@@ -829,7 +829,7 @@ static UINT ShellView_GetSelections(IShellViewImpl * This)
lvItem
.
iItem
=
0
;
lvItem
.
iItem
=
0
;
lvItem
.
iSubItem
=
0
;
lvItem
.
iSubItem
=
0
;
while
(
ListView_GetItem
A
(
This
->
hWndList
,
&
lvItem
)
&&
(
i
<
This
->
cidl
))
while
(
ListView_GetItem
W
(
This
->
hWndList
,
&
lvItem
)
&&
(
i
<
This
->
cidl
))
{
{
if
(
lvItem
.
state
&
LVIS_SELECTED
)
if
(
lvItem
.
state
&
LVIS_SELECTED
)
{
{
...
@@ -1980,7 +1980,7 @@ static HRESULT WINAPI IShellView_fnSelectItem(
...
@@ -1980,7 +1980,7 @@ static HRESULT WINAPI IShellView_fnSelectItem(
if
(
i
!=
-
1
)
if
(
i
!=
-
1
)
{
{
LVITEM
A
lvItem
;
LVITEM
W
lvItem
;
if
(
uFlags
&
SVSI_ENSUREVISIBLE
)
if
(
uFlags
&
SVSI_ENSUREVISIBLE
)
SendMessageW
(
This
->
hWndList
,
LVM_ENSUREVISIBLE
,
i
,
0
);
SendMessageW
(
This
->
hWndList
,
LVM_ENSUREVISIBLE
,
i
,
0
);
...
@@ -1990,7 +1990,7 @@ static HRESULT WINAPI IShellView_fnSelectItem(
...
@@ -1990,7 +1990,7 @@ static HRESULT WINAPI IShellView_fnSelectItem(
lvItem
.
iItem
=
0
;
lvItem
.
iItem
=
0
;
lvItem
.
iSubItem
=
0
;
lvItem
.
iSubItem
=
0
;
while
(
SendMessage
A
(
This
->
hWndList
,
LVM_GETITEMA
,
0
,
(
LPARAM
)
&
lvItem
))
while
(
SendMessage
W
(
This
->
hWndList
,
LVM_GETITEMW
,
0
,
(
LPARAM
)
&
lvItem
))
{
{
if
(
lvItem
.
iItem
==
i
)
if
(
lvItem
.
iItem
==
i
)
{
{
...
@@ -2007,7 +2007,7 @@ static HRESULT WINAPI IShellView_fnSelectItem(
...
@@ -2007,7 +2007,7 @@ static HRESULT WINAPI IShellView_fnSelectItem(
if
(
uFlags
&
SVSI_DESELECTOTHERS
)
if
(
uFlags
&
SVSI_DESELECTOTHERS
)
lvItem
.
state
&=
~
LVIS_SELECTED
;
lvItem
.
state
&=
~
LVIS_SELECTED
;
}
}
SendMessage
A
(
This
->
hWndList
,
LVM_SETITEMA
,
0
,
(
LPARAM
)
&
lvItem
);
SendMessage
W
(
This
->
hWndList
,
LVM_SETITEMW
,
0
,
(
LPARAM
)
&
lvItem
);
lvItem
.
iItem
++
;
lvItem
.
iItem
++
;
}
}
...
@@ -2213,7 +2213,7 @@ static HRESULT drag_notify_subitem(IShellViewImpl *This, DWORD grfKeyState, POIN
...
@@ -2213,7 +2213,7 @@ static HRESULT drag_notify_subitem(IShellViewImpl *This, DWORD grfKeyState, POIN
DWORD
*
pdwEffect
)
DWORD
*
pdwEffect
)
{
{
LVHITTESTINFO
htinfo
;
LVHITTESTINFO
htinfo
;
LVITEM
A
lvItem
;
LVITEM
W
lvItem
;
LONG
lResult
;
LONG
lResult
;
HRESULT
hr
;
HRESULT
hr
;
RECT
clientRect
;
RECT
clientRect
;
...
@@ -2271,7 +2271,7 @@ static HRESULT drag_notify_subitem(IShellViewImpl *This, DWORD grfKeyState, POIN
...
@@ -2271,7 +2271,7 @@ static HRESULT drag_notify_subitem(IShellViewImpl *This, DWORD grfKeyState, POIN
lvItem
.
mask
=
LVIF_PARAM
;
lvItem
.
mask
=
LVIF_PARAM
;
lvItem
.
iItem
=
lResult
;
lvItem
.
iItem
=
lResult
;
lvItem
.
iSubItem
=
0
;
lvItem
.
iSubItem
=
0
;
SendMessage
A
(
This
->
hWndList
,
LVM_GETITEMA
,
0
,
(
LPARAM
)
&
lvItem
);
SendMessage
W
(
This
->
hWndList
,
LVM_GETITEMW
,
0
,
(
LPARAM
)
&
lvItem
);
/* ... and bind pCurDropTarget to the IDropTarget interface of an UIObject of this object */
/* ... and bind pCurDropTarget to the IDropTarget interface of an UIObject of this object */
hr
=
IShellFolder_GetUIObjectOf
(
This
->
pSFParent
,
This
->
hWndList
,
1
,
hr
=
IShellFolder_GetUIObjectOf
(
This
->
pSFParent
,
This
->
hWndList
,
1
,
...
...
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