//if the current style is not report, the following three lines is not need
GetListCtrl().DeleteAllItems();
for(int h=GetListCtrl().GetHeaderCtrl()->GetItemCount();h>0;h--)
        GetListCtrl().DeleteColumn(h-1);
LONG lStyle;
//Get current window style
lStyle=GetWindowLong(GetListCtrl().GetSafeHwnd(),GWL_STYLE);
//Clear original type mask
lStyle &= ~LVS_TYPEMASK;
//Add new type style,the sample is icon
lStyle|=LVS_ICON;
//Ok,set new type style
SetWindowLong(GetListCtrl().GetSafeHwnd(),GWL_STYLE,lStyle);

相关文章:

  • 2021-06-11
  • 2021-08-10
  • 2022-02-10
  • 2021-08-10
  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-09
  • 2021-05-27
  • 2021-08-18
  • 2021-12-04
相关资源
相似解决方案