COMCTL32: adjust the tab contents to fix the propsheet between PSM_KILLACTIVE
and PSM_SETACTIVE
Mike McCormack
mike at codeweavers.com
Mon Aug 23 02:37:33 CDT 2004
ChangeLog:
* adjust the tab contents to fix the propsheet between PSM_KILLACTIVE
and PSM_SETACTIVE
-------------- next part --------------
Index: dlls/comctl32/propsheet.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/propsheet.c,v
retrieving revision 1.108
diff -u -r1.108 propsheet.c
--- dlls/comctl32/propsheet.c 17 Aug 2004 22:09:02 -0000 1.108
+++ dlls/comctl32/propsheet.c 23 Aug 2004 06:11:02 -0000
@@ -2040,6 +2040,8 @@
HWND hwndPage;
PSHNOTIFY psn;
BOOL res = FALSE;
+ HWND hwndTabControl;
+ RECT rect;
TRACE("active_page %d\n", psInfo->active_page);
if (!psInfo)
@@ -2064,6 +2066,16 @@
psn.lParam = 0;
res = !SendMessageA(hwndPage, WM_NOTIFY, 0, (LPARAM) &psn);
+
+ /*
+ * Re-adjuct the tab control's contents
+ */
+ hwndTabControl = GetDlgItem(hwndDlg, IDC_TABCONTROL);
+ memset( &rect, 0, sizeof rect );
+ GetClientRect( hwndTabControl, &rect );
+ SendMessageW( hwndTabControl, TCM_ADJUSTRECT, 0, (LPARAM) &rect );
+ SetWindowPos( hwndPage, NULL, rect.left, rect.top,
+ rect.right - rect.left, rect.bottom - rect.top, 0 );
end:
TRACE("<-- %d\n", res);
More information about the wine-patches
mailing list