Fixed for windowless controls attempting to get a DC from the ActiveX plugin
git-svn-id: svn://10.0.0.236/trunk@74841 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
992059a6cf
commit
eeb1a52854
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user