CListCtrlEx::CListCtrlEx() { UseGrid (); m_clrGrid = GetSysColor (COLOR_3DFACE); m_pSelImages = NULL; ZeroMemory (m_appszCols, sizeof (m_appszCols)); m_sortMode = LCSM_NONE; m_iSortCol = -1; m_sortModeSupport = LCSM_ALL_SUPPORTED; }
void GridDecorator::LoadStyle(const std::string& nameStyle) { ResourceManager* rm = ResourceManager::Get(); StyleProperties& properties = rm->GetStyle(nameStyle); UseGrid(rm->GetValue(properties["useGrid"], IsGridUsed())); mIcons[Align::TOP_LEFT].LoadStyle(nameStyle + "->topLeft"); mIcons[Align::TOP_CENTER].LoadStyle(nameStyle + "->topCenter"); mIcons[Align::TOP_RIGHT].LoadStyle(nameStyle + "->topRight"); mIcons[Align::LEFT].LoadStyle(nameStyle + "->left"); mIcons[Align::CENTER].LoadStyle(nameStyle + "->center"); mIcons[Align::RIGHT].LoadStyle(nameStyle + "->right"); mIcons[Align::BOTTOM_LEFT].LoadStyle(nameStyle + "->bottomLeft"); mIcons[Align::BOTTOM_CENTER].LoadStyle(nameStyle + "->bottomCenter"); mIcons[Align::BOTTOM_RIGHT].LoadStyle(nameStyle + "->bottomRight"); Icon::LoadStyle(nameStyle); }