Proper resource support for dialog title.
This commit is contained in:
parent
0a8e069667
commit
a0240cad52
|
@ -281,6 +281,17 @@ BOOL PROPSHEET_CollectPageInfo(LPCPROPSHEETPAGEA lppsp,
|
|||
|
||||
if (dwFlags & PSP_USETITLE)
|
||||
{
|
||||
if ( !HIWORD( 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);
|
||||
|
@ -1220,6 +1231,7 @@ static void PROPSHEET_UnChanged(HWND hwndDlg, HWND hwndCleanPage)
|
|||
PropSheetInfo* psInfo = (PropSheetInfo*) GetPropA(hwndDlg,
|
||||
PropSheetInfoStr);
|
||||
|
||||
if ( !psInfo ) return;
|
||||
for (i = 0; i < psInfo->nPages; i++)
|
||||
{
|
||||
/* set the specified page as clean */
|
||||
|
|
Loading…
Reference in New Issue