Nikolay Sivov : comctl32/propsheet: Force wizard header if any of pages has title/subtitle.

Alexandre Julliard julliard at winehq.org
Thu Apr 20 12:35:10 CDT 2017


Module: wine
Branch: stable
Commit: d84ebf0ddf770ba42f71d49f20ebec7bfa928255
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d84ebf0ddf770ba42f71d49f20ebec7bfa928255

Author: Nikolay Sivov <nsivov at 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 at codeweavers.com>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 6eafebedb88ccd00aac6b838fd9d882c94ae61b2)
Signed-off-by: Michael Stefaniuc <mstefani at 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




More information about the wine-cvs mailing list