// Backwards compatibility for wxCommandEvent::m_commandString, will lead to compilation errors in some cases of usage
class WXDLLIMPEXP_CORE wxCommandEvent;
-class wxCommandEventStringHelper
+class WXDLLIMPEXP_CORE wxCommandEventStringHelper
{
public:
wxCommandEventStringHelper(wxCommandEvent * evt)
};
#endif
+#ifdef __VISUALC__
+ // 'this' : used in base member initializer list (for m_commandString)
+ #pragma warning(disable:4355)
+#endif
class WXDLLIMPEXP_CORE wxCommandEvent : public wxEvent
{
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxCommandEvent)
};
+#ifdef __VISUALC__
+ #pragma warning(default:4355)
+#endif
+
#if WXWIN_COMPATIBILITY_2_4
inline void wxCommandEventStringHelper::operator=(const wxString &str)
{