void CMainFrame::OnWebHomePage() { CChildFrame* const pFrame = DYNAMIC_DOWNCAST( CChildFrame, MDIGetActive() ); if( pFrame ) { pFrame->OnWebHomePage(); } else { GoToUrl(L"http://www.workshare.com"); } }
void CUrlRichEditCtrl::OnLButtonUp(UINT nHitTest, CPoint point) { CRichEditBaseCtrl::OnLButtonUp(nHitTest, point); BOOL bShift = Misc::IsKeyPressed(VK_SHIFT); if (bShift || FindUrl(point) != m_nContextUrl) m_nContextUrl = -1; if (GoToUrl(m_nContextUrl)) { m_nContextUrl = -1; } }
void WebLoginWidget::GoToUrl() { GoToUrl(true); }