From f2112df817e70426c0d964b8fd8efa0de83c1774 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 22 Jun 2007 19:05:44 +0000 Subject: [PATCH] The new credentials window now applies Windows XP theme settings to dialog panels that are hosted within tab controls. ticket: 5584 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19634 dc483132-0cff-0310-8789-dd5450dbe970 --- src/windows/identity/ui/Makefile | 4 ++++ src/windows/identity/ui/newcredwnd.c | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/windows/identity/ui/Makefile b/src/windows/identity/ui/Makefile index 7091104f0..cf20127a3 100644 --- a/src/windows/identity/ui/Makefile +++ b/src/windows/identity/ui/Makefile @@ -75,6 +75,10 @@ SDKLIBFILES= \ msimg32.lib \ ole32.lib +!if "$(APPVER)" != "5.0" +SDKLIBFILES = $(SDKLIBFILES) uxtheme.lib +!endif + $(OBJ)\uiconfig.c: uiconfig.csv $(CONFDIR)\csvschema.cfg $(CCSV) $** $@ diff --git a/src/windows/identity/ui/newcredwnd.c b/src/windows/identity/ui/newcredwnd.c index 938cc1b4e..1d38e4c95 100644 --- a/src/windows/identity/ui/newcredwnd.c +++ b/src/windows/identity/ui/newcredwnd.c @@ -30,6 +30,9 @@ #define OEMRESOURCE #include +#if _WIN32_WINNT >= 0x0501 +#include +#endif #include ATOM khui_newcredwnd_cls; @@ -1402,6 +1405,11 @@ nc_handle_wm_create(HWND hwnd, if (hf_main) SendMessage(ncd->tab_wnd, WM_SETFONT, (WPARAM) hf_main, FALSE); +#if _WIN32_WINNT >= 0x0501 + EnableThemeDialogTexture(ncd->dlg_main, + ETDT_ENABLETAB); +#endif + { RECT r_main; RECT r_area; @@ -1982,6 +1990,12 @@ static LRESULT nc_handle_wm_nc_notify(HWND hwnd, #ifdef DEBUG assert(d->nc->types[i]->hwnd_panel); +#endif +#if _WIN32_WINNT >= 0x0501 + if (d->nc->types[i]->hwnd_panel) { + EnableThemeDialogTexture(d->nc->types[i]->hwnd_panel, + ETDT_ENABLETAB); + } #endif } } -- 2.26.2