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
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)
TRACE
(
"(%p)
\n
"
,
This
);
tmpstyle
=
GetWindowLong
A
(
This
->
hWndList
,
GWL_STYLE
);
SetWindowLong
A
(
This
->
hWndList
,
GWL_STYLE
,
dwAdd
|
(
tmpstyle
&
~
dwRemove
));
tmpstyle
=
GetWindowLong
W
(
This
->
hWndList
,
GWL_STYLE
);
SetWindowLong
W
(
This
->
hWndList
,
GWL_STYLE
,
dwAdd
|
(
tmpstyle
&
~
dwRemove
));
}
/**********************************************************
...
...
@@ -528,11 +528,11 @@ static int LV_FindItemByPidl(
IShellViewImpl
*
This
,
LPCITEMIDLIST
pidl
)
{
LVITEM
A
lvItem
;
LVITEM
W
lvItem
;
lvItem
.
iSubItem
=
0
;
lvItem
.
mask
=
LVIF_PARAM
;
for
(
lvItem
.
iItem
=
0
;
SendMessage
A
(
This
->
hWndList
,
LVM_GETITEMA
,
0
,
(
LPARAM
)
&
lvItem
);
SendMessage
W
(
This
->
hWndList
,
LVM_GETITEMW
,
0
,
(
LPARAM
)
&
lvItem
);
lvItem
.
iItem
++
)
{
LPITEMIDLIST
currentpidl
=
(
LPITEMIDLIST
)
lvItem
.
lParam
;
...
...
@@ -550,7 +550,7 @@ static int LV_FindItemByPidl(
*/
static
BOOLEAN
LV_AddItem
(
IShellViewImpl
*
This
,
LPCITEMIDLIST
pidl
)
{
LVITEM
A
lvItem
;
LVITEM
W
lvItem
;
TRACE
(
"(%p)(pidl=%p)
\n
"
,
This
,
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
.
iSubItem
=
0
;
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*/
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)
static
BOOLEAN
LV_RenameItem
(
IShellViewImpl
*
This
,
LPCITEMIDLIST
pidlOld
,
LPCITEMIDLIST
pidlNew
)
{
int
nItem
;
LVITEM
A
lvItem
;
LVITEM
W
lvItem
;
TRACE
(
"(%p)(pidlold=%p pidlnew=%p)
\n
"
,
This
,
pidlOld
,
pidlNew
);
...
...
@@ -591,14 +591,14 @@ static BOOLEAN LV_RenameItem(IShellViewImpl * This, LPCITEMIDLIST pidlOld, LPCIT
{
lvItem
.
mask
=
LVIF_PARAM
;
/* only the pidl */
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
);
lvItem
.
mask
=
LVIF_PARAM
;
lvItem
.
iItem
=
nItem
;
lvItem
.
lParam
=
(
LPARAM
)
ILClone
(
ILFindLastID
(
pidlNew
));
/* set the item's data */
SendMessage
A
(
This
->
hWndList
,
LVM_SETITEMA
,
0
,
(
LPARAM
)
&
lvItem
);
SendMessage
A
(
This
->
hWndList
,
LVM_UPDATE
,
nItem
,
0
);
SendMessage
W
(
This
->
hWndList
,
LVM_SETITEMW
,
0
,
(
LPARAM
)
&
lvItem
);
SendMessage
W
(
This
->
hWndList
,
LVM_UPDATE
,
nItem
,
0
);
return
TRUE
;
/* FIXME: better handling */
}
return
FALSE
;
...
...
@@ -721,8 +721,8 @@ static LRESULT ShellView_OnCreate(IShellViewImpl * This)
* ShellView_BuildFileMenu()
*/
static
HMENU
ShellView_BuildFileMenu
(
IShellViewImpl
*
This
)
{
CHAR
szText
[
MAX_PATH
];
MENUITEMINFO
A
mii
;
{
W
CHAR
szText
[
MAX_PATH
];
MENUITEMINFO
W
mii
;
int
nTools
,
i
;
HMENU
hSubMenu
;
...
...
@@ -736,7 +736,7 @@ static HMENU ShellView_BuildFileMenu(IShellViewImpl * This)
/*add the menu items*/
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
));
mii
.
cbSize
=
sizeof
(
mii
);
...
...
@@ -754,7 +754,7 @@ static HMENU ShellView_BuildFileMenu(IShellViewImpl * This)
mii
.
fType
=
MFT_SEPARATOR
;
}
/* 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
);
...
...
@@ -810,7 +810,7 @@ static void ShellView_MergeViewMenu(IShellViewImpl * This, HMENU hSubMenu)
*/
static
UINT
ShellView_GetSelections
(
IShellViewImpl
*
This
)
{
LVITEM
A
lvItem
;
LVITEM
W
lvItem
;
UINT
i
=
0
;
SHFree
(
This
->
apidl
);
...
...
@@ -829,7 +829,7 @@ static UINT ShellView_GetSelections(IShellViewImpl * This)
lvItem
.
iItem
=
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
)
{
...
...
@@ -1980,7 +1980,7 @@ static HRESULT WINAPI IShellView_fnSelectItem(
if
(
i
!=
-
1
)
{
LVITEM
A
lvItem
;
LVITEM
W
lvItem
;
if
(
uFlags
&
SVSI_ENSUREVISIBLE
)
SendMessageW
(
This
->
hWndList
,
LVM_ENSUREVISIBLE
,
i
,
0
);
...
...
@@ -1990,7 +1990,7 @@ static HRESULT WINAPI IShellView_fnSelectItem(
lvItem
.
iItem
=
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
)
{
...
...
@@ -2007,7 +2007,7 @@ static HRESULT WINAPI IShellView_fnSelectItem(
if
(
uFlags
&
SVSI_DESELECTOTHERS
)
lvItem
.
state
&=
~
LVIS_SELECTED
;
}
SendMessage
A
(
This
->
hWndList
,
LVM_SETITEMA
,
0
,
(
LPARAM
)
&
lvItem
);
SendMessage
W
(
This
->
hWndList
,
LVM_SETITEMW
,
0
,
(
LPARAM
)
&
lvItem
);
lvItem
.
iItem
++
;
}
...
...
@@ -2213,7 +2213,7 @@ static HRESULT drag_notify_subitem(IShellViewImpl *This, DWORD grfKeyState, POIN
DWORD
*
pdwEffect
)
{
LVHITTESTINFO
htinfo
;
LVITEM
A
lvItem
;
LVITEM
W
lvItem
;
LONG
lResult
;
HRESULT
hr
;
RECT
clientRect
;
...
...
@@ -2271,7 +2271,7 @@ static HRESULT drag_notify_subitem(IShellViewImpl *This, DWORD grfKeyState, POIN
lvItem
.
mask
=
LVIF_PARAM
;
lvItem
.
iItem
=
lResult
;
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 */
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