mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:52:54 +00:00
[shell32]
partial shlview winesync to wine 1.1.35 svn path=/trunk/; revision=44729
This commit is contained in:
parent
f89743a362
commit
39a8faa3dc
1 changed files with 8 additions and 8 deletions
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* Copyright 1998,1999 <juergen.schmied@debitel.net>
|
* Copyright 1998,1999 <juergen.schmied@debitel.net>
|
||||||
*
|
*
|
||||||
* This is the view visualizing the data provied by the shellfolder.
|
* This is the view visualizing the data provided by the shellfolder.
|
||||||
* No direct access to data from pidls should be done from here.
|
* No direct access to data from pidls should be done from here.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
|
@ -21,9 +21,9 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*
|
*
|
||||||
* FIXME: The order by part of the background context menu should be
|
* FIXME: The order by part of the background context menu should be
|
||||||
* buily according to the columns shown.
|
* built according to the columns shown.
|
||||||
*
|
*
|
||||||
* FIXME: Load/Save the view state from/into the stream provied by
|
* FIXME: Load/Save the view state from/into the stream provided by
|
||||||
* the ShellBrowser
|
* the ShellBrowser
|
||||||
*
|
*
|
||||||
* FIXME: CheckToolbar: handle the "new folder" and "folder up" button
|
* FIXME: CheckToolbar: handle the "new folder" and "folder up" button
|
||||||
|
@ -362,7 +362,7 @@ static BOOL ShellView_InitList(IShellViewImpl * This)
|
||||||
{
|
{
|
||||||
for (i=0; 1; i++)
|
for (i=0; 1; i++)
|
||||||
{
|
{
|
||||||
if (!SUCCEEDED(IShellFolder2_GetDetailsOf(This->pSF2Parent, NULL, i, &sd)))
|
if (FAILED(IShellFolder2_GetDetailsOf(This->pSF2Parent, NULL, i, &sd)))
|
||||||
break;
|
break;
|
||||||
lvColumn.fmt = sd.fmt;
|
lvColumn.fmt = sd.fmt;
|
||||||
lvColumn.cx = sd.cxChar*8; /* chars->pixel */
|
lvColumn.cx = sd.cxChar*8; /* chars->pixel */
|
||||||
|
@ -428,8 +428,8 @@ static INT CALLBACK ShellView_ListViewCompareItems(LPVOID lParam1, LPVOID lParam
|
||||||
FILETIME fd1, fd2;
|
FILETIME fd1, fd2;
|
||||||
char strName1[MAX_PATH], strName2[MAX_PATH];
|
char strName1[MAX_PATH], strName2[MAX_PATH];
|
||||||
BOOL bIsFolder1, bIsFolder2,bIsBothFolder;
|
BOOL bIsFolder1, bIsFolder2,bIsBothFolder;
|
||||||
LPITEMIDLIST pItemIdList1 = (LPITEMIDLIST) lParam1;
|
LPITEMIDLIST pItemIdList1 = lParam1;
|
||||||
LPITEMIDLIST pItemIdList2 = (LPITEMIDLIST) lParam2;
|
LPITEMIDLIST pItemIdList2 = lParam2;
|
||||||
LISTVIEW_SORT_INFO *pSortInfo = (LPLISTVIEW_SORT_INFO) lpData;
|
LISTVIEW_SORT_INFO *pSortInfo = (LPLISTVIEW_SORT_INFO) lpData;
|
||||||
|
|
||||||
|
|
||||||
|
@ -1343,7 +1343,7 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NM_RETURN:
|
case NM_RETURN:
|
||||||
TRACE("-- NM_DBLCLK %p\n",This);
|
TRACE("-- NM_RETURN %p\n",This);
|
||||||
if (OnDefaultCommand(This) != S_OK) ShellView_OpenSelectedItems(This);
|
if (OnDefaultCommand(This) != S_OK) ShellView_OpenSelectedItems(This);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1463,7 +1463,7 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
|
||||||
DWORD dwAttr = SFGAO_CANRENAME;
|
DWORD dwAttr = SFGAO_CANRENAME;
|
||||||
pidl = (LPITEMIDLIST)lpdi->item.lParam;
|
pidl = (LPITEMIDLIST)lpdi->item.lParam;
|
||||||
|
|
||||||
TRACE("-- LVN_BEGINLABELEDITA %p\n",This);
|
TRACE("-- LVN_BEGINLABELEDITW %p\n",This);
|
||||||
|
|
||||||
IShellFolder_GetAttributesOf(This->pSFParent, 1, (LPCITEMIDLIST*)&pidl, &dwAttr);
|
IShellFolder_GetAttributesOf(This->pSFParent, 1, (LPCITEMIDLIST*)&pidl, &dwAttr);
|
||||||
if (SFGAO_CANRENAME & dwAttr)
|
if (SFGAO_CANRENAME & dwAttr)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue