Print Page | Close Window

There is no skin on popup messagebox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=16795
Printed Date: 21 December 2024 at 8:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: There is no skin on popup messagebox
Posted By: allenhiman
Subject: There is no skin on popup messagebox
Date 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(" file://\\styles\\xxx.theme - \\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.



Replies:
Posted By: allenhiman
Date Posted: 08 June 2010 at 11:31pm
Who can help me? Thanks


Posted By: allenhiman
Date Posted: 11 June 2010 at 4:16am
Help! Help Me!


Posted By: SuperMario
Date Posted: 14 June 2010 at 1:13pm
// 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();



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net