15,976
社区成员
发帖
与我相关
我的任务
分享
void CListXX::EnableExplorerStyle()
{
if (m_winver >= 0x0600 && m_visualStyle == Present && !m_bExplorerStyle)
if (SetWindowTheme(m_pListCtrl->m_hWnd, L"Explorer", 0) == S_OK)
{
m_pListCtrl->SetBkColor(RGB(255, 255, 255));
if (m_pListCtrl->GetStyle() & LVS_OWNERDRAWFIXED)
m_hTheme = OpenThemeData(m_pListCtrl->m_hWnd, L"ListView");
m_bExplorerStyle = true;
}
}