| 18 | } |
| 19 | |
| 20 | bool DuiLib::CWebBrowserUI::DoCreateControl() |
| 21 | { |
| 22 | if (!CActiveXUI::DoCreateControl()) |
| 23 | return false; |
| 24 | GetManager()->AddTranslateAccelerator(this); |
| 25 | GetControl(IID_IWebBrowser2,(LPVOID*)&m_pWebBrowser2); |
| 26 | if ( m_bAutoNavi && !m_sHomePage.IsEmpty()) |
| 27 | { |
| 28 | this->Navigate2(m_sHomePage); |
| 29 | } |
| 30 | RegisterEventHandler(TRUE); |
| 31 | return true; |
| 32 | } |
| 33 | |
| 34 | void DuiLib::CWebBrowserUI::ReleaseControl() |
| 35 | { |
nothing calls this directly
no test coverage detected