Huw Davies : comctl32: Invalidate the header area so that updated titles will be drawn.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Aug 1 12:45:45 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: d1be762464ae55b602f7de540bba0041cc15f7cb
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=d1be762464ae55b602f7de540bba0041cc15f7cb

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Jul 31 15:28:17 2006 +0100

comctl32: Invalidate the header area so that updated titles will be drawn.

---

 dlls/comctl32/propsheet.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/propsheet.c b/dlls/comctl32/propsheet.c
index 01f2d0a..31590ee 100644
--- a/dlls/comctl32/propsheet.c
+++ b/dlls/comctl32/propsheet.c
@@ -2079,6 +2079,21 @@ static BOOL PROPSHEET_SetCurSel(HWND hwn
       continue;
     }
   }
+
+  /* Invalidate the header area */
+  if ( (psInfo->ppshheader.dwFlags & (PSH_WIZARD97_OLD | PSH_WIZARD97_NEW)) &&
+       (psInfo->ppshheader.dwFlags & PSH_HEADER) )
+  {
+    HWND hwndLineHeader = GetDlgItem(hwndDlg, IDC_SUNKEN_LINEHEADER);
+    RECT r;
+
+    GetClientRect(hwndLineHeader, &r);
+    MapWindowPoints(hwndLineHeader, hwndDlg, (LPPOINT) &r, 2);
+    SetRect(&r, 0, 0, r.right + 1, r.top - 1);
+
+    InvalidateRect(hwndDlg, &r, TRUE);
+  }
+
   /*
    * Display the new page.
    */




More information about the wine-cvs mailing list