Thou shalt not use C++ comments.
This commit is contained in:
parent
09f03b410e
commit
13a30bace7
|
@ -4770,31 +4770,32 @@ static LRESULT LISTVIEW_SetColumnWidth(HWND hwnd, INT iCol, INT cx)
|
||||||
LRESULT lret;
|
LRESULT lret;
|
||||||
LONG lStyle;
|
LONG lStyle;
|
||||||
|
|
||||||
// set column width only if in report mode
|
/* set column width only if in report mode */
|
||||||
lStyle = GetWindowLongA(hwnd, GWL_STYLE);
|
lStyle = GetWindowLongA(hwnd, GWL_STYLE);
|
||||||
if ((lStyle & LVS_TYPEMASK) != LVS_REPORT)
|
if ((lStyle & LVS_TYPEMASK) != LVS_REPORT)
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
|
|
||||||
// make sure we can get the listview info
|
/* make sure we can get the listview info */
|
||||||
if (!(infoPtr = (LISTVIEW_INFO *)GetWindowLongA(hwnd, 0)))
|
if (!(infoPtr = (LISTVIEW_INFO *)GetWindowLongA(hwnd, 0)))
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
if (!infoPtr->hwndHeader) // make sure we have a header
|
if (!infoPtr->hwndHeader) /* make sure we have a header */
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
|
|
||||||
// FIXME: currently ignoring LVSCW_AUTOSIZE (-1) and
|
/* FIXME: currently ignoring LVSCW_AUTOSIZE (-1) and
|
||||||
// LVSCV_AUTOSIZE_USEHEADER (-2)
|
* LVSCV_AUTOSIZE_USEHEADER (-2)
|
||||||
|
*/
|
||||||
if (cx < 0)
|
if (cx < 0)
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
|
|
||||||
hdi.mask = HDI_WIDTH;
|
hdi.mask = HDI_WIDTH;
|
||||||
hdi.cxy = cx;
|
hdi.cxy = cx;
|
||||||
|
|
||||||
// call header to update the column change
|
/* call header to update the column change */
|
||||||
lret = Header_SetItemA(infoPtr->hwndHeader, (WPARAM)iCol, (LPARAM)&hdi);
|
lret = Header_SetItemA(infoPtr->hwndHeader, (WPARAM)iCol, (LPARAM)&hdi);
|
||||||
|
|
||||||
infoPtr->nItemWidth = LISTVIEW_GetItemWidth(hwnd);
|
infoPtr->nItemWidth = LISTVIEW_GetItemWidth(hwnd);
|
||||||
|
|
||||||
InvalidateRect(hwnd, NULL, TRUE); // force redraw of the listview
|
InvalidateRect(hwnd, NULL, TRUE); /* force redraw of the listview */
|
||||||
|
|
||||||
return lret;
|
return lret;
|
||||||
}
|
}
|
||||||
|
@ -5122,7 +5123,7 @@ static LRESULT LISTVIEW_SortItems(HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
nCount = GETITEMCOUNT(infoPtr);
|
nCount = GETITEMCOUNT(infoPtr);
|
||||||
// if there are 0 or 1 items, there is no need to sort
|
/* if there are 0 or 1 items, there is no need to sort */
|
||||||
if (nCount > 1)
|
if (nCount > 1)
|
||||||
{
|
{
|
||||||
sortList = DPA_Create(nCount);
|
sortList = DPA_Create(nCount);
|
||||||
|
@ -5130,7 +5131,7 @@ static LRESULT LISTVIEW_SortItems(HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||||
infoPtr->pfnCompare = (PFNLVCOMPARE)lParam;
|
infoPtr->pfnCompare = (PFNLVCOMPARE)lParam;
|
||||||
infoPtr->lParamSort = (LPARAM)wParam;
|
infoPtr->lParamSort = (LPARAM)wParam;
|
||||||
|
|
||||||
// append pointers one by one to sortList
|
/* append pointers one by one to sortList */
|
||||||
for (i = 0; i < nCount; i++)
|
for (i = 0; i < nCount; i++)
|
||||||
{
|
{
|
||||||
if ((hdpaSubItems = (HDPA) DPA_GetPtr(infoPtr->hdpaItems, i)))
|
if ((hdpaSubItems = (HDPA) DPA_GetPtr(infoPtr->hdpaItems, i)))
|
||||||
|
@ -5138,10 +5139,10 @@ static LRESULT LISTVIEW_SortItems(HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||||
DPA_InsertPtr(sortList, nCount + 1, lpItem);
|
DPA_InsertPtr(sortList, nCount + 1, lpItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
// sort the sortList
|
/* sort the sortList */
|
||||||
DPA_Sort(sortList, LISTVIEW_CallBackCompare, hwnd);
|
DPA_Sort(sortList, LISTVIEW_CallBackCompare, hwnd);
|
||||||
|
|
||||||
// copy the pointers back
|
/* copy the pointers back */
|
||||||
for (i = 0; i < nCount; i++)
|
for (i = 0; i < nCount; i++)
|
||||||
{
|
{
|
||||||
if ((hdpaSubItems = (HDPA) DPA_GetPtr(infoPtr->hdpaItems, i)) &&
|
if ((hdpaSubItems = (HDPA) DPA_GetPtr(infoPtr->hdpaItems, i)) &&
|
||||||
|
|
|
@ -1145,8 +1145,9 @@ TREEVIEW_GetItemA (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||||
FIXME(" TVIF_INTEGRAL not supported yet\n");
|
FIXME(" TVIF_INTEGRAL not supported yet\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
// undocumented: windows ignores TVIF_PARAM and
|
/* undocumented: windows ignores TVIF_PARAM and
|
||||||
// always sets lParam
|
* always sets lParam
|
||||||
|
*/
|
||||||
tvItem->lParam=wineItem->lParam;
|
tvItem->lParam=wineItem->lParam;
|
||||||
|
|
||||||
if (tvItem->mask & TVIF_SELECTEDIMAGE) {
|
if (tvItem->mask & TVIF_SELECTEDIMAGE) {
|
||||||
|
|
|
@ -163,7 +163,7 @@ HRESULT WINAPI LoadTypeLib(
|
||||||
|
|
||||||
p=HEAP_strdupWtoA(GetProcessHeap(),0,szFile);
|
p=HEAP_strdupWtoA(GetProcessHeap(),0,szFile);
|
||||||
res= TLB_ReadTypeLib(p, pptLib);
|
res= TLB_ReadTypeLib(p, pptLib);
|
||||||
//XXX need to free p ??
|
/* XXX need to free p ?? */
|
||||||
|
|
||||||
TRACE( typelib, " returns %ld\n",res);
|
TRACE( typelib, " returns %ld\n",res);
|
||||||
|
|
||||||
|
@ -1963,9 +1963,9 @@ static HRESULT WINAPI ITypeInfo_fnGetRefTypeInfo( LPTYPEINFO iface,
|
||||||
pRefType->reference != hRefType; pRefType=pRefType->next)
|
pRefType->reference != hRefType; pRefType=pRefType->next)
|
||||||
;
|
;
|
||||||
if(!pRefType)
|
if(!pRefType)
|
||||||
return TYPE_E_ELEMENTNOTFOUND; //FIXME : correct?
|
return TYPE_E_ELEMENTNOTFOUND; /* FIXME : correct? */
|
||||||
pTypeLib=pRefType->pImpTLInfo->pImpTypeLib;
|
pTypeLib=pRefType->pImpTLInfo->pImpTypeLib;
|
||||||
if(pTypeLib) // typelib already loaded
|
if(pTypeLib) /* typelib already loaded */
|
||||||
result=pTypeLib->lpvtbl->fnGetTypeInfoOfGuid(
|
result=pTypeLib->lpvtbl->fnGetTypeInfoOfGuid(
|
||||||
(LPTYPELIB)pTypeLib, &pRefType->guid, ppTInfo);
|
(LPTYPELIB)pTypeLib, &pRefType->guid, ppTInfo);
|
||||||
else{
|
else{
|
||||||
|
|
Loading…
Reference in New Issue