ActiveX events should be sent to the window, not it's parent.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -415,7 +415,7 @@ void wxActiveX::CreateActiveX(REFCLSID clsid)
|
|||||||
// Update by GBR to resize older controls
|
// Update by GBR to resize older controls
|
||||||
wxSizeEvent szEvent;
|
wxSizeEvent szEvent;
|
||||||
szEvent.m_size = wxSize(w, h) ;
|
szEvent.m_size = wxSize(w, h) ;
|
||||||
AddPendingEvent(szEvent);
|
GetEventHandler()->AddPendingEvent(szEvent);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -909,7 +909,7 @@ public:
|
|||||||
if (func.hasOut)
|
if (func.hasOut)
|
||||||
{
|
{
|
||||||
int nArg = min(func.params.size(), pDispParams->cArgs);
|
int nArg = min(func.params.size(), pDispParams->cArgs);
|
||||||
m_activeX->GetParent()->ProcessEvent(event);
|
m_activeX->GetEventHandler()->ProcessEvent(event);
|
||||||
for (int i = 0; i < nArg; i++)
|
for (int i = 0; i < nArg; i++)
|
||||||
{
|
{
|
||||||
VARIANTARG& va = pDispParams->rgvarg[i];
|
VARIANTARG& va = pDispParams->rgvarg[i];
|
||||||
@@ -924,7 +924,7 @@ public:
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
m_activeX->GetParent()->AddPendingEvent(event);
|
m_activeX->GetEventHandler()->AddPendingEvent(event);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user