comdlg32: ChooseFont: Set font effects on init.

This commit is contained in:
Alexander Nicolaysen Sørnes 2007-08-26 18:29:23 +02:00 committed by Alexandre Julliard
parent ec6e307b92
commit 23dc9a38cd
1 changed files with 9 additions and 0 deletions

View File

@ -617,6 +617,15 @@ LRESULT CFn_WMInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam,
himlTT = ImageList_LoadImageW( COMDLG32_hInstance, MAKEINTRESOURCEW(38),
TTBITMAP_XSIZE, 0, CLR_DEFAULT, IMAGE_BITMAP, 0);
/* Set effect flags */
if((lpcf->Flags & CF_EFFECTS) && (lpcf->Flags & CF_INITTOLOGFONTSTRUCT))
{
if(lpxx->lfUnderline)
CheckDlgButton(hDlg, chx2, TRUE);
if(lpxx->lfStrikeOut)
CheckDlgButton(hDlg, chx1, TRUE);
}
if (!(lpcf->Flags & CF_SHOWHELP) || !IsWindow(lpcf->hwndOwner))
ShowWindow(GetDlgItem(hDlg,pshHelp),SW_HIDE);
if (!(lpcf->Flags & CF_APPLY))