Using DHTML ActiveX Controls in D4 - Please Help

I have been playing with the DHTML Editor component and cant work out
how to use the following ( Any sample code  or help will be appreciated)

function QueryStatus(cmdID: DHTMLEDITCMDID): DHTMLEDITCMDF;

procedure SetContextMenu(var menuStrings: OleVariant; var menuStates:
OleVariant);

Thanks