| 594 | } |
| 595 | |
| 596 | STDMETHODIMP 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 | |
| 620 | STDMETHODIMP CActiveXCtrl::Scroll(SIZE scrollExtant) |
| 621 | { |
nothing calls this directly
no test coverage detected