mshtml: Added IDM_DELETE support in QueryStatus.

This commit is contained in:
Jacek Caban 2007-06-26 21:15:54 +02:00 committed by Alexandre Julliard
parent a8de2abbc2
commit 67f87c5529
2 changed files with 6 additions and 0 deletions

View File

@ -983,6 +983,10 @@ HRESULT editor_exec_paste(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VAR
static HRESULT query_edit_status(HTMLDocument *This, OLECMD *cmd)
{
switch(cmd->cmdID) {
case IDM_DELETE:
TRACE("CGID_MSHTML: IDM_DELETE\n");
cmd->cmdf = query_ns_edit_status(This, NULL);
break;
case IDM_FONTNAME:
TRACE("CGID_MSHTML: IDM_FONTNAME\n");
cmd->cmdf = query_ns_edit_status(This, NULL);
@ -1033,6 +1037,7 @@ static HRESULT query_edit_status(HTMLDocument *This, OLECMD *cmd)
}
const cmdtable_t editmode_cmds[] = {
{IDM_DELETE, query_edit_status, NULL},
{IDM_FONTNAME, query_edit_status, exec_fontname},
{IDM_FONTSIZE, query_edit_status, exec_fontsize},
{IDM_FORECOLOR, query_edit_status, exec_forecolor},

View File

@ -2705,6 +2705,7 @@ static void test_MSHTML_QueryStatus(IUnknown *unk, DWORD cmdf)
test_QueryStatus(unk, &CGID_MSHTML, IDM_UNORDERLIST, cmdf);
test_QueryStatus(unk, &CGID_MSHTML, IDM_INDENT, cmdf);
test_QueryStatus(unk, &CGID_MSHTML, IDM_OUTDENT, cmdf);
test_QueryStatus(unk, &CGID_MSHTML, IDM_DELETE, cmdf);
}
static void test_OleCommandTarget(IUnknown *unk)