From: Tom Yu Date: Thu, 9 Aug 2007 22:12:55 +0000 (+0000) Subject: pull up r19634 from trunk X-Git-Tag: kfw-3.2.1-beta1~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a0708d1f2560b1172c8d913dbc510504ee06acc7;p=krb5.git pull up r19634 from trunk r19634@cathode-dark-space: jaltman | 2007-06-22 15:05:44 -0400 ticket: 5584 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/branches/krb5-1-6@19792 dc483132-0cff-0310-8789-dd5450dbe970 --- 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 } }