mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
Update the item width upon a new column in the header control.
This commit is contained in:
parent
5f3d3a8d78
commit
50f8e4b171
1 changed files with 6 additions and 0 deletions
|
@ -2498,6 +2498,9 @@ static LRESULT LISTVIEW_DeleteColumn(HWND hwnd, INT nColumn)
|
||||||
{
|
{
|
||||||
bResult = LISTVIEW_RemoveColumn(infoPtr->hdpaItems, nColumn);
|
bResult = LISTVIEW_RemoveColumn(infoPtr->hdpaItems, nColumn);
|
||||||
|
|
||||||
|
/* Need to reset the item width when deleting a column */
|
||||||
|
infoPtr->nItemWidth = LISTVIEW_GetItemWidth(hwnd);
|
||||||
|
|
||||||
/* reset scroll parameters */
|
/* reset scroll parameters */
|
||||||
if (uView == LVS_REPORT)
|
if (uView == LVS_REPORT)
|
||||||
{
|
{
|
||||||
|
@ -4707,6 +4710,9 @@ static LRESULT LISTVIEW_InsertColumnA(HWND hwnd, INT nColumn,
|
||||||
/* insert item in header control */
|
/* insert item in header control */
|
||||||
nNewColumn = SendMessageA(infoPtr->hwndHeader, HDM_INSERTITEMA,
|
nNewColumn = SendMessageA(infoPtr->hwndHeader, HDM_INSERTITEMA,
|
||||||
(WPARAM)nColumn, (LPARAM)&hdi);
|
(WPARAM)nColumn, (LPARAM)&hdi);
|
||||||
|
|
||||||
|
/* Need to reset the item width when inserting a new column */
|
||||||
|
infoPtr->nItemWidth = LISTVIEW_GetItemWidth(hwnd);
|
||||||
|
|
||||||
LISTVIEW_UpdateScroll(hwnd);
|
LISTVIEW_UpdateScroll(hwnd);
|
||||||
InvalidateRect(hwnd, NULL, FALSE);
|
InvalidateRect(hwnd, NULL, FALSE);
|
||||||
|
|
Loading…
Reference in a new issue