Alexander Nicolaysen Sørnes : comdlg32: ChooseFont: Set font effects on init.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Sep 10 10:17:49 CDT 2007


Module: wine
Branch: master
Commit: 23dc9a38cd64fa9cd07c3d7cbc3e4db207a56b14
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=23dc9a38cd64fa9cd07c3d7cbc3e4db207a56b14

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Sun Aug 26 18:29:23 2007 +0200

comdlg32: ChooseFont: Set font effects on init.

---

 dlls/comdlg32/fontdlg.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/dlls/comdlg32/fontdlg.c b/dlls/comdlg32/fontdlg.c
index a900c69..4afb222 100644
--- a/dlls/comdlg32/fontdlg.c
+++ b/dlls/comdlg32/fontdlg.c
@@ -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))




More information about the wine-cvs mailing list