1,658
社区成员




//加载风格
//找到资源路径
TCHAR szStylesPath[_MAX_PATH];
VERIFY(::GetModuleFileName(
AfxGetApp()->m_hInstance, szStylesPath, _MAX_PATH));
CString strStylesPath = szStylesPath;
int nIndex = strStylesPath.ReverseFind(_T('\\'));
if (nIndex > 0) {
strStylesPath = strStylesPath.Left(nIndex);
}
else {
strStylesPath.Empty();
}
strStylesPath += _T("\\");
XTPSkinManager()->SetApplyOptions(XTPSkinManager()->GetApplyOptions() | xtpSkinApplyMetrics);
XTPSkinManager()->LoadSkin(strStylesPath + _T("Style.dll"));