call. You can make copies of the menu, toolbar and accelerator table, =
them all the same id (IDR_HTMLVIEW). and simply remove the entries from t=
menu and accelerator table.
AliR.
"ZagNut" <simon.duv...@gmail.com> wrote in message
news:f8dbd86e-0f8d-4d20-9284-9dfdcc5da287@33g2000yqm.googlegroups.com...
Er, yes? IDR_MAINFRAME...?
Here's where the CMDIChildForm is created (singleton-style):
void CWebBrowser::ShowBrowser(CMDIFrameWnd* parentWnd, CString url)
{
if (!CWebBrowser::bWebBrowserOpen)
{
CWebBrowser::bWebBrowserOpen = true;
CWebBrowser* cwb = (CWebBrowser*)parentWnd->CreateNewChild
(RUNTIME_CLASS(CWebBrowser), IDR_MAINFRAME);
cwb->SetWindowTextA(_T("CompanyWebSite.com"));
cwb->SetIcon(::AfxGetApp()->LoadIconA(IDI_WEB), true);
CCreateContext ccc;
ccc.m_pNewViewClass = RUNTIME_CLASS(CWebBrowserView);
ccc.m_pCurrentFrame = cwb;
CWebBrowserView* cwbv = (CWebBrowserView*)cwb->CreateView(&ccc);
cwb->SetActiveView(cwbv);
cwbv->Navigate(url);
cwb->ShowWindow(SW_SHOW);
CWebBrowser::cwbInstance = cwb;}
else if (CWebBrowser::cwbInstance != NULL)
{
CWebBrowser::cwbInstance->BringWindowToTop();
}
}
On Dec 3, 12:56 pm, "AliR \(VC++ MVP\)" <A...@online.nospam> wrote:
Where are your delete and backspace accelerators defined? In the
accelerator table loaded by the formview?
AliR.
"ZagNut" <simon.duv...@gmail.com> wrote in message
news:f50b34eb-855a-4348-a723-2e0e3ae67768@d23g2000yqc.googlegroups.com..=
The application's accelerator table is definitely overriding the
delete and backspace keys so that when the child window containing the
chtmlview is up and the user mistypes a username ina textbox on the
web page, they cannot do delete ot backspace...I want to be able to
temprarily disable the application's overall accelerators when the
form with chtmlview is active...
On Dec 3, 12:46 pm, "AliR \(VC++ MVP\)" <A...@online.nospam> wrote:
CHtmlView already handles backspace, if you want to override it you w=