diff --git a/wxPython/contrib/activex/wxie/wxactivex.cpp b/wxPython/contrib/activex/wxie/wxactivex.cpp index 7738d6ff57..46f372c9ee 100644 --- a/wxPython/contrib/activex/wxie/wxactivex.cpp +++ b/wxPython/contrib/activex/wxie/wxactivex.cpp @@ -85,6 +85,8 @@ BEGIN_EVENT_TABLE(wxActiveX, wxWindow) EVT_KILL_FOCUS(wxActiveX::OnKillFocus) END_EVENT_TABLE() +IMPLEMENT_CLASS(wxActiveX, wxWindow) + class wxActiveX; class FrameSite : @@ -253,6 +255,7 @@ wxWindow(parent, id, pos, size, style, name) m_bAmbientUserMode = true; m_docAdviseCookie = 0; CreateActiveX(clsid); + m_bestSize = GetSize(); } wxActiveX::wxActiveX(wxWindow * parent, const wxString& progId, wxWindowID id, @@ -265,6 +268,7 @@ wxActiveX::wxActiveX(wxWindow * parent, const wxString& progId, wxWindowID id, m_bAmbientUserMode = true; m_docAdviseCookie = 0; CreateActiveX((LPOLESTR) (const wchar_t *) progId.wc_str(wxConvUTF8)); + m_bestSize = GetSize(); } wxActiveX::~wxActiveX() diff --git a/wxPython/contrib/activex/wxie/wxactivex.h b/wxPython/contrib/activex/wxie/wxactivex.h index 4b40323708..fa1d173aa0 100644 --- a/wxPython/contrib/activex/wxie/wxactivex.h +++ b/wxPython/contrib/activex/wxie/wxactivex.h @@ -610,6 +610,8 @@ protected: NameMap m_methodNames; long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); + + DECLARE_CLASS(wxActiveX) }; // events