Commit 64fe2774 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added implementation of QueryStatus(IDM_UNDERLINE).

parent 5e0d749c
......@@ -41,6 +41,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
#define NSCMD_BOLD "cmd_bold"
#define NSCMD_ITALIC "cmd_italic"
#define NSCMD_UNDERLINE "cmd_underline"
/**********************************************************
* IOleCommandTarget implementation
......@@ -408,7 +409,7 @@ static HRESULT exec_underline(HTMLDocument *This)
TRACE("(%p)\n", This);
if(This->nscontainer)
do_ns_command(This->nscontainer, "cmd_underline", NULL);
do_ns_command(This->nscontainer, NSCMD_UNDERLINE, NULL);
return S_OK;
}
......@@ -674,8 +675,8 @@ static HRESULT WINAPI OleCommandTarget_QueryStatus(IOleCommandTarget *iface, con
prgCmds[i].cmdf = OLECMDF_SUPPORTED|OLECMDF_ENABLED;
break;
case IDM_UNDERLINE:
FIXME("CGID_MSHTML: IDM_UNDERLINE\n");
prgCmds[i].cmdf = OLECMDF_SUPPORTED|OLECMDF_ENABLED;
TRACE("CGID_MSHTML: IDM_UNDERLINE\n");
prgCmds[i].cmdf = query_edit_status(This, NSCMD_UNDERLINE);
break;
case IDM_HORIZONTALLINE:
FIXME("CGID_MSHTML: IDM_HORIZONTALLINE\n");
......
......@@ -2041,6 +2041,7 @@ static void test_MSHTML_QueryStatus(IUnknown *unk, DWORD 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);
}
static void test_OleCommandTarget(IUnknown *unk)
......
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