comctl32: Implement setting the header titles for a property sheet

André Hentschel nerv at dawncrow.de
Wed Dec 22 18:49:42 CST 2010


at least the W functions.
tested with dotnet40 installer
---
 dlls/comctl32/propsheet.c |   21 +++++++++++++++++----
 1 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/dlls/comctl32/propsheet.c b/dlls/comctl32/propsheet.c
index f711399..65ea99c 100644
--- a/dlls/comctl32/propsheet.c
+++ b/dlls/comctl32/propsheet.c
@@ -34,8 +34,8 @@
  *   - Messages:
  *     o PSM_INSERTPAGE
  *     o PSM_RECALCPAGESIZES
- *     o PSM_SETHEADERSUBTITLE
- *     o PSM_SETHEADERTITLE
+ *     o PSM_SETHEADERTITLEA
+ *     o PSM_SETHEADERSUBTITLEA
  *     o WM_HELP
  *     o WM_CONTEXTMENU
  *   - Notifications:
@@ -170,6 +170,7 @@ static BOOL PROPSHEET_SetCurSel(HWND hwndDlg,
                                 HPROPSHEETPAGE hpage);
 static int PROPSHEET_GetPageIndex(HPROPSHEETPAGE hpage, const PropSheetInfo* psInfo);
 static PADDING_INFO PROPSHEET_GetPaddingInfoWizard(HWND hwndDlg, const PropSheetInfo* psInfo);
+static LRESULT PROPSHEET_Paint(HWND hwnd, HDC hdcParam);
 static BOOL PROPSHEET_DoCommand(HWND hwnd, WORD wID);
 
 static INT_PTR CALLBACK
@@ -2492,7 +2493,13 @@ static BOOL PROPSHEET_InsertPage(HWND hwndDlg, HPROPSHEETPAGE hpageInsertAfter,
  */
 static void PROPSHEET_SetHeaderTitleW(HWND hwndDlg, int iPageIndex, LPCWSTR pszHeaderTitle)
 {
-    FIXME("(%p, %d, %s): stub\n", hwndDlg, iPageIndex, debugstr_w(pszHeaderTitle));
+    PropSheetInfo * psInfo = GetPropW(hwndDlg, PropSheetInfoStr);
+    LPPROPSHEETPAGEW ppshpage = (LPPROPSHEETPAGEW)psInfo->proppage[iPageIndex].hpage;
+
+    TRACE("(%p, %d, %s)\n", hwndDlg, iPageIndex, debugstr_w(pszHeaderTitle));
+
+    ppshpage->pszHeaderTitle = pszHeaderTitle;
+    ppshpage->dwFlags |= PSP_USEHEADERTITLE;
 }
 
 /******************************************************************************
@@ -2508,7 +2515,13 @@ static void PROPSHEET_SetHeaderTitleA(HWND hwndDlg, int iPageIndex, LPCSTR pszHe
  */
 static void PROPSHEET_SetHeaderSubTitleW(HWND hwndDlg, int iPageIndex, LPCWSTR pszHeaderSubTitle)
 {
-    FIXME("(%p, %d, %s): stub\n", hwndDlg, iPageIndex, debugstr_w(pszHeaderSubTitle));
+    PropSheetInfo * psInfo = GetPropW(hwndDlg, PropSheetInfoStr);
+    LPPROPSHEETPAGEW ppshpage = (LPPROPSHEETPAGEW)psInfo->proppage[iPageIndex].hpage;
+
+    TRACE("(%p, %d, %s)\n", hwndDlg, iPageIndex, debugstr_w(pszHeaderSubTitle));
+
+    ppshpage->pszHeaderSubTitle = pszHeaderSubTitle;
+    ppshpage->dwFlags |= PSP_USEHEADERSUBTITLE;
 }
 
 /******************************************************************************
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list