Corrected some segvs that occur with ownerdata listviews.
This commit is contained in:
parent
bcbb6ec92b
commit
e127a28166
|
@ -3015,6 +3015,7 @@ static VOID LISTVIEW_DrawItem(HWND hwnd, HDC hdc, INT nItem, RECT rcItem, BOOL F
|
|||
if (bImage)
|
||||
dwTextX += IMAGE_PADDING;
|
||||
|
||||
if (lvItem.pszText)
|
||||
ExtTextOutA(hdc, dwTextX, rcItem.top, textoutOptions,
|
||||
&rcItem, lvItem.pszText, lstrlenA(lvItem.pszText), NULL);
|
||||
|
||||
|
@ -3959,10 +3960,12 @@ static LRESULT LISTVIEW_DeleteColumn(HWND hwnd, INT nColumn)
|
|||
{
|
||||
LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO *)GetWindowLongA(hwnd, 0);
|
||||
UINT uView = GetWindowLongA(hwnd, GWL_STYLE) & LVS_TYPEMASK;
|
||||
UINT uOwnerData = GetWindowLongA(hwnd, GWL_STYLE) & LVS_OWNERDATA;
|
||||
BOOL bResult = FALSE;
|
||||
|
||||
if (Header_DeleteItem(infoPtr->hwndHeader, nColumn) != FALSE)
|
||||
{
|
||||
if (!uOwnerData)
|
||||
bResult = LISTVIEW_RemoveColumn(infoPtr->hdpaItems, nColumn);
|
||||
|
||||
/* Need to reset the item width when deleting a column */
|
||||
|
|
Loading…
Reference in New Issue