Commit a0240cad authored by Adrian Thurston's avatar Adrian Thurston Committed by Alexandre Julliard

Proper resource support for dialog title.

parent 0a8e0696
...@@ -281,15 +281,26 @@ BOOL PROPSHEET_CollectPageInfo(LPCPROPSHEETPAGEA lppsp, ...@@ -281,15 +281,26 @@ BOOL PROPSHEET_CollectPageInfo(LPCPROPSHEETPAGEA lppsp,
if (dwFlags & PSP_USETITLE) if (dwFlags & PSP_USETITLE)
{ {
psInfo->proppage[index].pszText = HEAP_strdupAtoW(GetProcessHeap(), if ( !HIWORD( lppsp->pszTitle ) )
0, {
lppsp->pszTitle); char szTitle[256];
if ( !LoadStringA( lppsp->hInstance, (UINT) lppsp->pszTitle, szTitle, 256 ) )
return FALSE;
psInfo->proppage[index].pszText = HEAP_strdupAtoW( GetProcessHeap(),
0, szTitle );
}
else
psInfo->proppage[index].pszText = HEAP_strdupAtoW(GetProcessHeap(),
0,
lppsp->pszTitle);
} }
/* /*
* Build the image list for icons * Build the image list for icons
*/ */
if ((dwFlags & PSP_USEHICON) || (dwFlags & PSP_USEICONID)) if ((dwFlags & PSP_USEHICON) || (dwFlags & PSP_USEICONID))
{ {
HICON hIcon; HICON hIcon;
int icon_cx = GetSystemMetrics(SM_CXSMICON); int icon_cx = GetSystemMetrics(SM_CXSMICON);
...@@ -1220,6 +1231,7 @@ static void PROPSHEET_UnChanged(HWND hwndDlg, HWND hwndCleanPage) ...@@ -1220,6 +1231,7 @@ static void PROPSHEET_UnChanged(HWND hwndDlg, HWND hwndCleanPage)
PropSheetInfo* psInfo = (PropSheetInfo*) GetPropA(hwndDlg, PropSheetInfo* psInfo = (PropSheetInfo*) GetPropA(hwndDlg,
PropSheetInfoStr); PropSheetInfoStr);
if ( !psInfo ) return;
for (i = 0; i < psInfo->nPages; i++) for (i = 0; i < psInfo->nPages; i++)
{ {
/* set the specified page as clean */ /* set the specified page as clean */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment