Skip to content

Commit

Permalink
remove _app_listview_resize_ex
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypp committed Jan 25, 2024
1 parent a74409d commit 5e053ec
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/controls.c
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ VOID _app_window_resize (
_r_tab_adjustchild (hwnd, IDC_TAB, GetDlgItem (hwnd, listview_id));

if (listview_id == current_listview_id)
_app_listview_resize (hwnd, listview_id);
_app_listview_resize (hwnd, listview_id, FALSE);
}
}

Expand Down
14 changes: 3 additions & 11 deletions src/listview.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ VOID _app_listview_showitemby_param (
{
_app_listview_sort (hwnd, listview_id);

_app_listview_resize (hwnd, listview_id);
_app_listview_resize (hwnd, listview_id, FALSE);
}

item_id = _app_listview_finditem (hwnd, listview_id, lparam);
Expand Down Expand Up @@ -519,7 +519,7 @@ VOID _app_listview_updateby_id (
_app_listview_sort (hwnd, listview_id);

if (!(flags & PR_UPDATE_NORESIZE))
_app_listview_resize (hwnd, listview_id);
_app_listview_resize (hwnd, listview_id, FALSE);
}

_app_refreshstatus (hwnd);
Expand Down Expand Up @@ -795,7 +795,7 @@ VOID _app_listview_refreshgroups (
}
}

VOID _app_listview_resize_ex (
VOID _app_listview_resize (
_In_ HWND hwnd,
_In_ INT listview_id,
_In_ BOOLEAN is_forced
Expand Down Expand Up @@ -924,14 +924,6 @@ VOID _app_listview_resize_ex (
ReleaseDC (hheader, hdc_header);
}

VOID _app_listview_resize (
_In_ HWND hwnd,
_In_ INT listview_id
)
{
_app_listview_resize_ex (hwnd, listview_id, FALSE);
}

VOID _app_listview_setfont (
_In_ HWND hwnd,
_In_ INT listview_id
Expand Down
7 changes: 1 addition & 6 deletions src/listview.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,12 @@ VOID _app_listview_refreshgroups (
_In_ INT listview_id
);

VOID _app_listview_resize_ex (
VOID _app_listview_resize (
_In_ HWND hwnd,
_In_ INT listview_id,
_In_ BOOLEAN is_forced
);

VOID _app_listview_resize (
_In_ HWND hwnd,
_In_ INT listview_id
);

VOID _app_listview_setfont (
_In_ HWND hwnd,
_In_ INT listview_id
Expand Down
2 changes: 1 addition & 1 deletion src/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ VOID _app_logclear_ui (
{
_r_listview_deleteallitems (hwnd, IDC_LOG);

_app_listview_resize (hwnd, IDC_LOG);
_app_listview_resize (hwnd, IDC_LOG, FALSE);

_r_queuedlock_acquireexclusive (&lock_loglist);
_r_obj_clearhashtable (log_table);
Expand Down
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2496,7 +2496,7 @@ INT_PTR CALLBACK DlgProc (
if (_r_wnd_isvisible_ex (hwnd)) // HACK!!!
SetFocus (hlistview);

_app_listview_resize (hwnd, listview_id);
_app_listview_resize (hwnd, listview_id, FALSE);

break;
}
Expand Down Expand Up @@ -3165,7 +3165,7 @@ INT_PTR CALLBACK DlgProc (
_r_config_setboolean (L"AutoSizeColumns", new_val);

if (new_val)
_app_listview_resize (hwnd, _app_listview_getcurrent (hwnd));
_app_listview_resize (hwnd, _app_listview_getcurrent (hwnd), FALSE);

break;
}
Expand Down

0 comments on commit 5e053ec

Please sign in to comment.