#ifdef __VISUALC__
// 'this' : used in base member initializer list (for m_commandString)
- #pragma warning(push)
+ #if _MSC_VER > 1100
+ #pragma warning(push)
+ #endif
#pragma warning(disable:4355)
#endif
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxCommandEvent)
};
-#ifdef __VISUALC__
+#if defined(__VISUALC__) && (_MSC_VER > 1100)
#pragma warning(pop)
#endif
// wxEvtHandler: the base class for all objects handling wxWidgets events
// ----------------------------------------------------------------------------
-typedef void (wxEvtHandler::*wxEventFunction)(wxEvent&);
-
class WXDLLIMPEXP_BASE wxEvtHandler : public wxObject
{
public:
bool ProcessThreadEvent(wxEvent& event);
#endif
-#if wxUSE_EXCEPTIONS
- // call the specified handler with the given event
- //
- // this method only exists to allow catching the exceptions thrown by any
- // event handler, it would lead to an extra (useless) virtual function call
- // if the exceptions were not used, so it doesn't even exist in that case
- virtual void DoHandleEvent(wxEventFunction func, wxEvent& event);
-#endif // wxUSE_EXCEPTIONS
-
// Dynamic association of a member function handler with the event handler,
// winid and event type
void Connect(int winid,
dest->AddPendingEvent(event);
}
+typedef void (wxEvtHandler::*wxEventFunction)(wxEvent&);
+
#define wxEventHandler(func) \
(wxObjectEventFunction)wxStaticCastEvent(wxEventFunction, &func)