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:
parent
165e6ca32a
commit
85ac8ca017
@ -415,7 +415,7 @@ void wxActiveX::CreateActiveX(REFCLSID clsid)
|
||||
// Update by GBR to resize older controls
|
||||
wxSizeEvent szEvent;
|
||||
szEvent.m_size = wxSize(w, h) ;
|
||||
AddPendingEvent(szEvent);
|
||||
GetEventHandler()->AddPendingEvent(szEvent);
|
||||
};
|
||||
}
|
||||
|
||||
@ -909,7 +909,7 @@ public:
|
||||
if (func.hasOut)
|
||||
{
|
||||
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++)
|
||||
{
|
||||
VARIANTARG& va = pDispParams->rgvarg[i];
|
||||
@ -924,7 +924,7 @@ public:
|
||||
};
|
||||
}
|
||||
else
|
||||
m_activeX->GetParent()->AddPendingEvent(event);
|
||||
m_activeX->GetEventHandler()->AddPendingEvent(event);
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user