Module: wine
Branch: stable
Commit: d84ebf0ddf770ba42f71d49f20ebec7bfa928255
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d84ebf0ddf770ba42f71d49f2…
Author: Nikolay Sivov <nsivov(a)codeweavers.com>
Date: Wed Feb 1 08:17:03 2017 +0300
comctl32/propsheet: Force wizard header if any of pages has title/subtitle.
Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
(cherry picked from commit 6eafebedb88ccd00aac6b838fd9d882c94ae61b2)
Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org>
---
dlls/comctl32/propsheet.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/comctl32/propsheet.c b/dlls/comctl32/propsheet.c
index 1809b86..4c04dfe 100644
--- a/dlls/comctl32/propsheet.c
+++ b/dlls/comctl32/propsheet.c
@@ -486,6 +486,9 @@ static BOOL PROPSHEET_CollectPageInfo(LPCPROPSHEETPAGEW lppsp,
width = (WORD)*p; p++;
height = (WORD)*p; p++;
+ if (lppsp->dwFlags & (PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE))
+ psInfo->ppshheader.dwFlags |= PSH_HEADER;
+
/* Special calculation for interior wizard pages so the largest page is
* calculated correctly. We need to add all the padding and space occupied
* by the header so the width and height sums up to the whole wizard client