aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2008-07-23 14:38:27 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2008-07-23 14:38:27 +0000
commit6c354704c237f051518dc7fff83abd219c371434 (patch)
tree89555a8e6ad17412d61726fc7836d8511affa4e6 /src
parent63ca95ac9b98a2d602b0e4a668e38363b856ae00 (diff)
downloadkrb5-6c354704c237f051518dc7fff83abd219c371434.zip
krb5-6c354704c237f051518dc7fff83abd219c371434.tar.gz
krb5-6c354704c237f051518dc7fff83abd219c371434.tar.bz2
cw_handle_header_msg():
The behavior of the HDN_ENDTRACK notification has changed slightly on Vista. HDM_GETITEMRECT, when used while handling HDN_ENDTRACK, returns the item extents that were there prior to the user starting the resizing operation. Earlier it would return the extents that resulted from the resizing operation. This resulted in a visual update problem on Windows Vista/2008 in the NIM Advanced View. ticket: 5605 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20570 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/windows/identity/ui/credwnd.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/windows/identity/ui/credwnd.c b/src/windows/identity/ui/credwnd.c
index 5b24680..c5eb0d1 100644
--- a/src/windows/identity/ui/credwnd.c
+++ b/src/windows/identity/ui/credwnd.c
@@ -2784,7 +2784,6 @@ cw_draw_header(HDC hdc,
LRESULT
cw_handle_header_msg(khui_credwnd_tbl * tbl, LPNMHEADER ph) {
- RECT r;
HDITEM hi;
switch(ph->hdr.code) {
@@ -2807,13 +2806,10 @@ cw_handle_header_msg(khui_credwnd_tbl * tbl, LPNMHEADER ph) {
case HDN_ENDTRACK:
{
- int width;
hi.mask = HDI_ORDER;
Header_GetItem(ph->hdr.hwndFrom, ph->iItem, &hi);
- Header_GetItemRect(ph->hdr.hwndFrom, ph->iItem, &r);
- width = r.right - r.left;
- if(width != tbl->cols[hi.iOrder].width) {
- tbl->cols[hi.iOrder].width = width;
+ if(ph->pitem->cxy != tbl->cols[hi.iOrder].width) {
+ tbl->cols[hi.iOrder].width = ph->pitem->cxy;
cw_update_extents(tbl, TRUE);
InvalidateRect(tbl->hwnd, NULL, FALSE);
}