From fd5da1a7b993ce915d93bbac81538e81f50fa37b Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Thu, 9 Nov 2006 10:45:05 +0100 Subject: [PATCH] mshtml: Added QueryStatus(IDM_FONTSIZE) implementation. --- dlls/mshtml/olecmd.c | 4 ++-- dlls/mshtml/tests/htmldoc.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/olecmd.c b/dlls/mshtml/olecmd.c index 01c98bbdbe1..41d76888eb9 100644 --- a/dlls/mshtml/olecmd.c +++ b/dlls/mshtml/olecmd.c @@ -640,8 +640,8 @@ static HRESULT WINAPI OleCommandTarget_QueryStatus(IOleCommandTarget *iface, con prgCmds[i].cmdf = query_edit_status(This, NULL); break; case IDM_FONTSIZE: - FIXME("CGID_MSHTML: IDM_FONTSIZE\n"); - prgCmds[i].cmdf = OLECMDF_SUPPORTED|OLECMDF_ENABLED; + TRACE("CGID_MSHTML: IDM_FONTSIZE\n"); + prgCmds[i].cmdf = query_edit_status(This, NULL); break; case IDM_PASTE: FIXME("CGID_MSHTML: IDM_PASTE\n"); diff --git a/dlls/mshtml/tests/htmldoc.c b/dlls/mshtml/tests/htmldoc.c index c6434563258..68e2a111a73 100644 --- a/dlls/mshtml/tests/htmldoc.c +++ b/dlls/mshtml/tests/htmldoc.c @@ -2040,6 +2040,7 @@ static void test_MSHTML_QueryStatus(IUnknown *unk, DWORD cmdf) else unk = _unk; test_QueryStatus(unk, &CGID_MSHTML, IDM_FONTNAME, cmdf); + test_QueryStatus(unk, &CGID_MSHTML, IDM_FONTSIZE, cmdf); test_QueryStatus(unk, &CGID_MSHTML, IDM_BOLD, cmdf); test_QueryStatus(unk, &CGID_MSHTML, IDM_ITALIC, cmdf); test_QueryStatus(unk, &CGID_MSHTML, IDM_UNDERLINE, cmdf);