comctl32: Use the dialog template caption as default propsheet title.

This commit is contained in:
Hans Leidekker 2012-10-29 12:11:24 +01:00 committed by Alexandre Julliard
parent a41ba1c3e8
commit 232a44edaf
1 changed files with 5 additions and 6 deletions

View File

@ -555,13 +555,12 @@ static BOOL PROPSHEET_CollectPageInfo(LPCPROPSHEETPAGEW lppsp,
if (IS_INTRESOURCE( lppsp->pszTitle ))
{
if (!LoadStringW( lppsp->hInstance, (DWORD_PTR)lppsp->pszTitle,szTitle,sizeof(szTitle)/sizeof(szTitle[0]) ))
{
pTitle = pszNull;
FIXME("Could not load resource #%04x?\n",LOWORD(lppsp->pszTitle));
}
else
if (LoadStringW( lppsp->hInstance, (DWORD_PTR)lppsp->pszTitle, szTitle, sizeof(szTitle)/sizeof(szTitle[0]) ))
pTitle = szTitle;
else if (*p)
pTitle = p;
else
pTitle = pszNull;
}
else
pTitle = lppsp->pszTitle;