Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - There is no skin on popup messagebox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

There is no skin on popup messagebox

 Post Reply Post Reply
Author
Message
allenhiman View Drop Down
Newbie
Newbie


Joined: 28 October 2009
Location: China
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote allenhiman Quote  Post ReplyReply Direct Link To This Post Topic: There is no skin on popup messagebox
    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.
Back to Top
allenhiman View Drop Down
Newbie
Newbie


Joined: 28 October 2009
Location: China
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote allenhiman Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2010 at 11:31pm
Who can help me? Thanks
Back to Top
allenhiman View Drop Down
Newbie
Newbie


Joined: 28 October 2009
Location: China
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote allenhiman Quote  Post ReplyReply Direct Link To This Post Posted: 11 June 2010 at 4:16am
Help! Help Me!
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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();
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.234 seconds.