From 9dcf2b634b3472ce5b23e28e3f0c7cac13c256fd Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 24 Aug 2007 14:34:30 +0000 Subject: [PATCH] NIM: do not permit resizing of filler columns The credentials display of Network Identity Manager allows the user to change the order and size of the displayed columns. However, some columns are not resizable. An oversight in the earlier code allowed the user to change the size of "filler" columns. These columns are sized to fill up the remainder of the display area after the other columns have been allocated. Their width is determined by the size of the credentials display and the width of the other columns. They are used in the basic view where the only columns are the flags column (fixed width) and the identity column (filler). This patch prevents the "filler" columns (columns with the KHUI_CW_COL_FILLER flag) from being resized. ticket: new component: windows git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19858 dc483132-0cff-0310-8789-dd5450dbe970 --- src/windows/identity/ui/credwnd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/windows/identity/ui/credwnd.c b/src/windows/identity/ui/credwnd.c index 0d3f17fe5..ed9cad735 100644 --- a/src/windows/identity/ui/credwnd.c +++ b/src/windows/identity/ui/credwnd.c @@ -2697,7 +2697,8 @@ cw_handle_header_msg(khui_credwnd_tbl * tbl, LPNMHEADER ph) { hi.mask = HDI_ORDER; Header_GetItem(tbl->hwnd_header, ph->iItem, &hi); - if(tbl->cols[hi.iOrder].flags & KHUI_CW_COL_FIXED_WIDTH) + if (tbl->cols[hi.iOrder].flags & (KHUI_CW_COL_FIXED_WIDTH | + KHUI_CW_COL_FILLER)) return TRUE; else return FALSE; -- 2.26.2