Module: wine Branch: refs/heads/master Commit: d1be762464ae55b602f7de540bba0041cc15f7cb URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d1be762464ae55b602f7de54...
Author: Huw Davies huw@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. */