MCPcopy Create free account
hub / github.com/cinience/RedisStudio / Initialize

Method Initialize

RedisStudio/RedisHelpUI.cpp:27–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void RedisHelpUI::Initialize()
28{
29 CActiveXUI* pActiveXUI = static_cast<CActiveXUI*>(GetPaintMgr()->FindControl(_T("ie")));
30 if( pActiveXUI ) {
31 IWebBrowser2* pWebBrowser = NULL;
32 pActiveXUI->GetControl(IID_IWebBrowser2, (void**)&pWebBrowser);
33 // 忽略js错误
34 pWebBrowser->put_Silent(true);
35 if( pWebBrowser != NULL ) {
36 pWebBrowser->Navigate(L"http://redis.io/commands",NULL,NULL,NULL,NULL);
37 //pWebBrowser->Navigate(L"about:blank",NULL,NULL,NULL,NULL);
38 pWebBrowser->Release();
39 }
40 }
41}
42
43int RedisHelpUI::GetIndex()
44{

Callers

nothing calls this directly

Calls 3

GetControlMethod · 0.80
FindControlMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected