[krbdev.mit.edu #5609] NIM GUI picture does not track tray icon
Kevin Koch via RT
kfw-bugs at MIT.EDU
Thu Aug 2 11:43:01 EDT 2007
New patch:
Index: credwnd.c
===================================================================
--- credwnd.c (revision 19739)
+++ credwnd.c (working copy)
@@ -2248,6 +2248,11 @@
RECT t;
BOOL rie;
HBRUSH hbr;
+ khm_handle hc_cw = NULL;
+ khm_int32 bHideWatermarks = 0;
+
+ khc_open_space(NULL, L"CredWindow", KHM_PERM_READ, &hc_cw);
+ if (hc_cw) {khc_read_int32(hc_cw, L"HideWatermarks",
&bHideWatermarks);}
switch(type) {
case CW_ER_BLANK:
@@ -2271,7 +2276,8 @@
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));
More information about the kfwdev
mailing list