Fixed for windowless controls attempting to get a DC from the ActiveX plugin

This commit is contained in:
locka%iol.ie 2000-07-26 22:45:22 +00:00
parent 71918bb721
commit b5ac61bef4

View File

@ -731,7 +731,13 @@ HRESULT STDMETHODCALLTYPE CControlSite::GetDC(/* [in] */ LPCRECT pRect, /* [in]
return E_INVALIDARG;
}
// Can't do nested painting
if (grfFlags & OLEDC_NODRAW)
{
*phDC = m_hDCBuffer;
return S_OK;
}
// Can't do nested painting
if (m_hDCBuffer != NULL)
{
return E_UNEXPECTED;