Hide the vertical scrollbar when listview style is LVS_LIST.

This commit is contained in:
Chris Morgan 2000-09-12 23:37:19 +00:00 committed by Alexandre Julliard
parent 9982a2487e
commit 2a6c1e498c
1 changed files with 8 additions and 7 deletions

View File

@ -637,6 +637,7 @@ static VOID LISTVIEW_UpdateScroll(HWND hwnd)
scrollInfo.nPage = nCountPerRow; scrollInfo.nPage = nCountPerRow;
scrollInfo.fMask = SIF_RANGE | SIF_POS | SIF_PAGE; scrollInfo.fMask = SIF_RANGE | SIF_POS | SIF_PAGE;
SetScrollInfo(hwnd, SB_HORZ, &scrollInfo, TRUE); SetScrollInfo(hwnd, SB_HORZ, &scrollInfo, TRUE);
ShowScrollBar(hwnd, SB_VERT, FALSE);
} }
else if (uView == LVS_REPORT) else if (uView == LVS_REPORT)
{ {
@ -1692,7 +1693,7 @@ static BOOL LISTVIEW_ToggleSelection(HWND hwnd, INT nItem)
/*** /***
* DESCRIPTION: * DESCRIPTION:
* Selects items based on view coorddiantes. * Selects items based on view coordinates.
* *
* PARAMETER(S): * PARAMETER(S):
* [I] HWND : window handle * [I] HWND : window handle
@ -2586,7 +2587,7 @@ static BOOL LISTVIEW_SetItem(HWND hwnd, LPLVITEMA lpLVItem)
if (nmlv.uNewState & LVIS_SELECTED) if (nmlv.uNewState & LVIS_SELECTED)
{ {
/* /*
* This is redundent if called through SetSelection * This is redundant if called through SetSelection
* *
* however is required if the used directly calls SetItem * however is required if the used directly calls SetItem
* to set the selection. * to set the selection.
@ -2608,9 +2609,9 @@ static BOOL LISTVIEW_SetItem(HWND hwnd, LPLVITEMA lpLVItem)
{ {
/* /*
* This is a fun hoop to jump to try to catch if * This is a fun hoop to jump to try to catch if
* the user is calling us directly to call focuse or if * the user is calling us directly to call focus or if
* this function is being called as a result of a * this function is being called as a result of a
* SetItemFocuse call. * SetItemFocus call.
*/ */
if (infoPtr->nFocusedItem >= 0) if (infoPtr->nFocusedItem >= 0)
LISTVIEW_SetItemFocus(hwnd, lpLVItem->iItem); LISTVIEW_SetItemFocus(hwnd, lpLVItem->iItem);
@ -2626,8 +2627,8 @@ static BOOL LISTVIEW_SetItem(HWND hwnd, LPLVITEMA lpLVItem)
/* copy information */ /* copy information */
bResult = LISTVIEW_InitItem(hwnd, lpItem, lpLVItem); bResult = LISTVIEW_InitItem(hwnd, lpItem, lpLVItem);
/* if LVS_LIST or LVS_SMALLICON, update the width of the items based on */ /* if LVS_LIST or LVS_SMALLICON, update the width of the items
/* the width of the items text */ based on the width of the items text */
if((uView == LVS_LIST) || (uView == LVS_SMALLICON)) if((uView == LVS_LIST) || (uView == LVS_SMALLICON))
{ {
item_width = LISTVIEW_GetStringWidthA(hwnd, lpItem->pszText); item_width = LISTVIEW_GetStringWidthA(hwnd, lpItem->pszText);
@ -3537,7 +3538,7 @@ static VOID LISTVIEW_Refresh(HWND hwnd, HDC hdc)
/* select font */ /* select font */
hOldFont = SelectObject(hdc, infoPtr->hFont); hOldFont = SelectObject(hdc, infoPtr->hFont);
/* select the doted pen (for drawing the focus box) */ /* select the dotted pen (for drawing the focus box) */
hPen = CreatePen(PS_DOT, 1, 0); hPen = CreatePen(PS_DOT, 1, 0);
hOldPen = SelectObject(hdc, hPen); hOldPen = SelectObject(hdc, hPen);