Skip to content

Commit 3e8b35b

Browse files
committed
added inline function for full reset list view
1 parent 75424cc commit 3e8b35b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/routine.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5586,6 +5586,16 @@ FORCEINLINE BOOLEAN _r_listview_deleteallitems (
55865586
return (_r_wnd_sendmessage (hwnd, ctrl_id, LVM_DELETEALLITEMS, 0, 0) == TRUE);
55875587
}
55885588

5589+
FORCEINLINE VOID _r_listview_reset (
5590+
_In_ HWND hwnd,
5591+
_In_opt_ INT ctrl_id
5592+
)
5593+
{
5594+
_r_listview_deleteallitems(hwnd, ctrl_id);
5595+
_r_listview_deleteallgroups(hwnd, ctrl_id);
5596+
_r_listview_deleteallcolumns(hwnd, ctrl_id);
5597+
}
5598+
55895599
FORCEINLINE BOOLEAN _r_listview_deleteitem (
55905600
_In_ HWND hwnd,
55915601
_In_opt_ INT ctrl_id,

0 commit comments

Comments
 (0)