Http://community.9cbs.net/expert/topic/2642/2642102.xml?temp=.5055048
Get iaxwinambientdispatch from the container
CComPtr spHost; hResult = QueryHost (IID_IAxWinAmbientDispatch, (LPVOID *) & spHost); if (SUCCEEDED (hResult)) {spHost-> put_AllowContextMenu (VARIANT_FALSE); spHost-> put_DocHostFlags (DOCHOSTUIFLAG_FLAT_SCROLLBAR | DOCHOSTUIFLAG_DIALOG | DOCHOSTUIFLAG_NO3DBORDER | DOCHOSTUIFLAG_DISABLE_HELP_MENU);}