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

Method GetWindowContext

DuiLib/Control/UIActiveX.cpp:596–618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595
596STDMETHODIMP CActiveXCtrl::GetWindowContext(IOleInPlaceFrame** ppFrame, IOleInPlaceUIWindow** ppDoc, LPRECT lprcPosRect, LPRECT lprcClipRect, LPOLEINPLACEFRAMEINFO lpFrameInfo)
597{
598 DUITRACE(_T("AX: CActiveXCtrl::GetWindowContext"));
599 if( ppDoc == NULL ) return E_POINTER;
600 if( ppFrame == NULL ) return E_POINTER;
601 if( lprcPosRect == NULL ) return E_POINTER;
602 if( lprcClipRect == NULL ) return E_POINTER;
603 if (m_pWindow)
604 {
605 ::GetClientRect(m_pWindow->GetHWND(),lprcPosRect);
606 ::GetClientRect(m_pWindow->GetHWND(),lprcClipRect);
607 }
608 *ppFrame = new CActiveXFrameWnd(m_pOwner);
609 *ppDoc = NULL;
610 ACCEL ac = { 0 };
611 HACCEL hac = ::CreateAcceleratorTable(&ac, 1);
612 lpFrameInfo->cb = sizeof(OLEINPLACEFRAMEINFO);
613 lpFrameInfo->fMDIApp = FALSE;
614 lpFrameInfo->hwndFrame = m_pOwner->GetManager()->GetPaintWindow();
615 lpFrameInfo->haccel = hac;
616 lpFrameInfo->cAccelEntries = 1;
617 return S_OK;
618}
619
620STDMETHODIMP CActiveXCtrl::Scroll(SIZE scrollExtant)
621{

Callers

nothing calls this directly

Calls 3

GetPaintWindowMethod · 0.80
GetManagerMethod · 0.80
GetHWNDMethod · 0.45

Tested by

no test coverage detected