Program Icon |
Post Reply |
Author | |
jimmy
Senior Member Joined: 11 November 2003 Location: Austria Status: Offline Points: 515 |
Post Options
Thanks(0)
Posted: 05 September 2007 at 10:16am |
Hello,
Using in dialog application CMyDialog::CMyDialog() { XTPSkinManager()->SetApplyOptions(xtpSkinApplyFrame | xtpSkinApplyColors | xtpSkinApplyMetrics); CString strSkinFile; strSkinFile = VaranCommon::TheProgrammInfo().m_strProgramPath; strSkinFile += "Styles\\iTunes"; // if (Common::Path::IsFileExisting(strSkinFile)) if (XTPSkinManager()->LoadSkin(strSkinFile, "Normalitunes.INI")) InitTheme(NULL, xtpThemeNativeWinXP); } void InitTheme(CXTPDockingPaneManager *pPaneManager, XTPPaintTheme Theme) { SetTheme(Theme, pPaneManager); CXTPPopupBar::m_dMaxWidthDivisor = 0.9; // m_pMTIClientWnd->GetPaintManager()->SetLayout(xtpTabLayoutAutoSize); XTP_COMMANDBARS_ICONSINFO* pIconsInfo = XTPPaintManager()->GetIconsInfo(); pIconsInfo->bUseDisabledIcons = FALSE; pIconsInfo->bIconsWithShadow = TRUE; pIconsInfo->bUseFadedIcons = TRUE; } static void SetTheme(XTPPaintTheme Theme, CXTPDockingPaneManager *pPaneManager) { switch(Theme) { case xtpThemeOfficeXP: // Office XP theme. CXTPPaintManager::SetTheme(xtpThemeOfficeXP); if (pPaneManager) pPaneManager->SetTheme(xtpPaneThemeOffice); break; case xtpThemeOffice2000: // Office 2000 theme. CXTPPaintManager::SetTheme(xtpThemeOffice2000); if (pPaneManager) pPaneManager->SetTheme(xtpPaneThemeDefault); break; case xtpThemeOffice2003: // Office 2003 theme. CXTPPaintManager::SetTheme(xtpThemeOffice2003); if (pPaneManager) pPaneManager->SetTheme(xtpPaneThemeOffice2003); break; // case xtpThemeNativeWinXP: // Windows XP themes support. default: CXTPPaintManager::SetTheme(xtpThemeNativeWinXP); if (pPaneManager) pPaneManager->SetTheme(xtpPaneThemeNativeWinXP); break; } if (pPaneManager) pPaneManager->RedrawPanes(); } if skinning file (or directory) is NOT available, the dialog draw correct icon. But if i use skinning, there was a wrong icon. Jimmy |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
What code you use to set icon ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Source
Senior Member Joined: 19 June 2006 Status: Offline Points: 103 |
Post Options
Thanks(0)
|
Can you also attach the skinning file that you use ?
Thanks.
|
|
jimmy
Senior Member Joined: 11 November 2003 Location: Austria Status: Offline Points: 515 |
Post Options
Thanks(0)
|
Hello,
I've change SetIcon(hIcon, TRUE); to SetIcon(hIcon, FALSE); And now it work. I use iTune skinns from CodeJock samples. Jimmy |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |