diff options
author | Jeffrey Altman <jaltman@secure-endpoints.com> | 2007-09-21 23:22:56 +0000 |
---|---|---|
committer | Jeffrey Altman <jaltman@secure-endpoints.com> | 2007-09-21 23:22:56 +0000 |
commit | 7c2e4fb7565a7bde7b30ae29b9105e14a9fb4cd7 (patch) | |
tree | a2e68fa9ae55899e16c282d16bd98c2909e617f4 /src | |
parent | 6db28eb17bb77c3178d3f1da57630658eeedb85c (diff) | |
download | krb5-7c2e4fb7565a7bde7b30ae29b9105e14a9fb4cd7.zip krb5-7c2e4fb7565a7bde7b30ae29b9105e14a9fb4cd7.tar.gz krb5-7c2e4fb7565a7bde7b30ae29b9105e14a9fb4cd7.tar.bz2 |
NIM: APP: BUG: restore HideWatermark functionality
Restore the HideWatermark functionality that was accidently
removed from ui/credwnd.c
ticket: new
component: windows
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19964 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r-- | src/windows/identity/ui/credwnd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/windows/identity/ui/credwnd.c b/src/windows/identity/ui/credwnd.c index 9e4daa1..960a834 100644 --- a/src/windows/identity/ui/credwnd.c +++ b/src/windows/identity/ui/credwnd.c @@ -50,6 +50,8 @@ static void cw_select_row(khui_credwnd_tbl * tbl, int row, WPARAM wParam); +khm_int32 bHideWatermarks = 0; + void khm_set_cw_element_font(wchar_t * name, LOGFONT * pfont) { khm_handle csp_cw = NULL; @@ -507,6 +509,8 @@ cw_load_view(khui_credwnd_tbl * tbl, wchar_t * view, HWND hwnd) { &hc_cw))) return; + khc_read_int32(hc_cw, L"HideWatermarks", &bHideWatermarks); + if(KHM_FAILED(khc_open_space(hc_cw, L"Views", KHM_PERM_READ, &hc_vs))) goto _exit; @@ -2392,7 +2396,8 @@ cw_erase_rect(HDC hdc, rlogo.right = r_wnd->right; rlogo.top = r_wnd->bottom - tbl->kbm_logo_shade.cy; rlogo.bottom = r_wnd->bottom; - rie = IntersectRect(&ri, r_erase, &rlogo); + if (bHideWatermarks) {rie = FALSE;} + else {rie = IntersectRect(&ri, r_erase, &rlogo);} } else { ZeroMemory(&rlogo, sizeof(rlogo)); ZeroMemory(&ri, sizeof(ri)); |