コード例 #1
0
ファイル: MainFrm.cpp プロジェクト: zxlooong/bcgexp
void CMainFrame::SetAddress(LPCTSTR lpszUrl)
{
    // This is called when the browser has completely loaded the new location,
    // so make sure the text in the address bar is up to date and stop the
    // animation.

    CBCGPToolbarComboBoxButton* pAdress = DYNAMIC_DOWNCAST (CBCGPToolbarComboBoxButton,
                                          m_wndAddressBar.GetButton (m_wndAddressBar.CommandToIndex (IDC_ADDRESS)));

    if (pAdress != NULL)
    {
        ASSERT_VALID (pAdress);
        pAdress->SetText (lpszUrl);
    }
//	m_wndAnimate.Stop();
}