void CListCtrl_Sortable::PreSubclassWindow()
{
	CListCtrl::PreSubclassWindow();

	// Focus retangle is not painted properly without double-buffering
#if (_WIN32_WINNT >= 0x501)
	SetExtendedStyle(LVS_EX_DOUBLEBUFFER | GetExtendedStyle());
#endif
	SetExtendedStyle(GetExtendedStyle() | LVS_EX_FULLROWSELECT | LVS_EX_HEADERDRAGDROP);


	EnableWindowTheme(GetSafeHwnd(), L"Explorer", NULL);
	//m_hDC = ::GetDC(m_hWnd);
}
void CFeedIcoItemListCtrl::PreSubclassWindow()
{
//	// Focus retangle is not painted properly without double-buffering
//#if (_WIN32_WINNT >= 0x501)//在已经自绘的情况下再设置双缓冲是画蛇添足
//	//SetExtendedStyle(LVS_EX_DOUBLEBUFFER | GetExtendedStyle());
//#endif
	//if ( thePrefs.GetWindowsVersion() == _WINVER_XP_ )
	//{
	//	SetExtendedStyle(GetExtendedStyle() | LVS_EX_TRACKSELECT);
	//}
	
//
//	// Enable Vista-look if possible
	EnableWindowTheme(GetSafeHwnd(), L"ListView", L"Explorer", NULL);
//
	CListCtrl::PreSubclassWindow();
}