![]() |
There is no skin on popup messagebox |
Post Reply ![]() |
Author | |
allenhiman ![]() Newbie ![]() Joined: 28 October 2009 Location: China Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() Posted: 08 June 2010 at 12:23am |
In Windows Vista 32
In my app begin I use this function to load skin " XTPSkinManager()->LoadSkin( s + _T("\\styles\\xxx.theme") )"
But, when I use the function "SHBrowseForFolder(&bi)" to browse folder,
there is no skin on the popup message to view network, cd-rom and floppy disk.
The full code like this
void CSettingsProgram::OnBnClickedButtonCheck10()
{ BOOL bret = TRUE; BROWSEINFO bi; CString strTitle; TCHAR szDir[MAX_PATH] = {0}; LPITEMIDLIST pidl; ZeroMemory(&bi,sizeof(bi));
strTitle.LoadString(IDS_STRING_SELMOUNT); bi.hwndOwner = m_hWnd;
bi.lpszTitle = strTitle; bi.pidlRoot = NULL; bi.ulFlags = BIF_USENEWUI | BIF_RETURNONLYFSDIRS; bi.pszDisplayName = szDir; bi.lpfn = NULL; pidl = SHBrowseForFolder(&bi);
bret &= SHGetPathFromIDList(pidl, szDir); if(pidl) CoTaskMemFree(pidl); return bret;
} Please tell me how to fix it, thx.
|
|
![]() |
|
allenhiman ![]() Newbie ![]() Joined: 28 October 2009 Location: China Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
Who can help me? Thanks
|
|
![]() |
|
allenhiman ![]() Newbie ![]() Joined: 28 October 2009 Location: China Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
Help! Help Me!
![]() |
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
// Exclude a couple of MS DLLs that cause problems
XTPSkinManager()->ExcludeModule(_T("msctf.dll")); XTPSkinManager()->ExcludeModule(_T("mshtml.dll")); // Load the skin XTPSkinManager()->LoadSkin(skinfile, skinini); // Apply skin, including metrics, coloring and frame XTPSkinManager()->SetApplyOptions(xtpSkinApplyMetrics|xtpSkinApplyColors|xtpSkinApplyFrame); // Apply skin to all new windows and threads XTPSkinManager()->SetAutoApplyNewWindows(TRUE); XTPSkinManager()->SetAutoApplyNewThreads(TRUE); // Apply skin to current thread and window XTPSkinManager()->EnableCurrentThread(); XTPSkinManager()->ApplyWindow(this->GetSafeHwnd()); // Redraw everything XTPSkinManager()->RedrawAllControls(); |
|
![]() |
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 |