Hello,
I noticed a bug in Find Files dialog. When using XP-style theme in application, dialogs on TabControl has old color, like xp-style is not enabled. (Press Alt+F7 in total commander and you will see white tabs and old-styled color of tabcontrol contents). It seems it's a bug of Windows developers. I spent much time fixing it in my programs but I found a solution. I fix it by manual executing EnableThemeDialogTexture function.
Here is a part of code from my MFC program:
Code: Select all
//Checking if application is able to use XP-style
HMODULE hinstDll;
bool XPStyle = false;
HRESULT (__stdcall *pEnableThemeDialogTexture)(HWND hwnd, DWORD dwFlags);
bool (__stdcall *pIsAppThemed)();
hinstDll = ::LoadLibrary("UxTheme.dll");
if (hinstDll)
{
(FARPROC&)pIsAppThemed = ::GetProcAddress(hinstDll, "IsAppThemed");
(FARPROC&)pEnableThemeDialogTexture = ::GetProcAddress(hinstDll, "EnableThemeDialogTexture");
::FreeLibrary(hinstDll);
if (pIsAppThemed != NULL && pEnableThemeDialogTexture!= NULL) XPStyle = pIsAppThemed();
}
// ....
// Executing EnableThemeDialogTexture() for a dialog inside TabControl and showing a dialog
if (XPStyle) pEnableThemeDialogTexture(TabControl->MyDlg->m_hWnd, ETDT_USETABTEXTURE|ETDT_ENABLETAB);
TabControl->MyDlg->ShowWindow(SW_SHOW);