Reputation: 1643
Is there a flag to prevent the CDHTMLDialog from use the IE history (back, backspace, context menu)? Or is there a event to look for? I don't seem to track it in PreTranslateMessage().
Upvotes: 1
Views: 935
Reputation: 101
Check out these MSDN references and the sample code: TranslateAccelerator and ShowContextMenu
STDMETHODIMP CDHtmlDialogSubclass::ShowContextMenu(DWORD dwID, POINT *ppt, IUnknown *pcmdtReserved, IDispatch *pdispReserved)
{
return S_OK;
}
STDMETHODIMP CDHtmlDialogSubclass::TranslateAccelerator(LPMSG lpMsg, const GUID * pguidCmdGroup, DWORD nCmdID)
{
if (lpMsg && lpMsg->message == WM_KEYDOWN &&
(lpMsg->wParam == VK_F5 ||
lpMsg->wParam == VK_CONTROL))
{
return S_OK;
}
return CDHtmlDialog::TranslateAccelerator(lpMsg, pguidCmdGroup, nCmdID);
}
Upvotes: 1