你的风格没设置啊,要设置风格使用
LONG lStyle;
lStyle=GetWindowLong(m_pListCtrl->m_hWnd,GWL_STYLE);
//获取当前窗口类型
lStyle&=~LVS_TYPEMASK; //清除显示方式位
lStyle|=LVS_REPORT; //设置显示方式
SetWindowLong(m_pListCtrl->m_hWnd,GWL_STYLE,lStyle);
//设置窗口类型
LONG lStyle;
lStyle=GetWindowLong(m_pListCtrl->m_hWnd,GWL_STYLE);
//获取当前窗口类型
lStyle&=~LVS_TYPEMASK; //清除显示方式位
lStyle|=LVS_REPORT; //设置显示方式
SetWindowLong(m_pListCtrl->m_hWnd,GWL_STYLE,lStyle);
//设置窗口类型
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货