None of that will get the listview itself to have rounded corners, because Windows listviews don't support that.
Adding a margin between the edge of the dialog and the listview control is the normal and obvious thing to do, but will not make the listview corners rounded; it just avoids them overlapping the dialog's rounded corners.
(Reminder: Please do not use AI to create posts on this forum )