]> git.saurik.com Git - wxWidgets.git/commitdiff
Add EVT_WINDOW_MODAL_DIALOG_CLOSED() event table macro.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Dec 2011 15:43:05 +0000 (15:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Dec 2011 15:43:05 +0000 (15:43 +0000)
Add it for consistency with wxEVT_WINDOW_MODAL_DIALOG_CLOSED.

See #13804.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dialog.h

index 1a602c9f96fe71bc44b10260b4cacf33ecad7a21..bf9d71646acc39c2b7af35587705d86aa119d39e 100644 (file)
@@ -394,5 +394,8 @@ typedef void (wxEvtHandler::*wxWindowModalDialogEventFunction)(wxWindowModalDial
 #define wxWindowModalDialogEventHandler(func) \
     wxEVENT_HANDLER_CAST(wxWindowModalDialogEventFunction, func)
 
 #define wxWindowModalDialogEventHandler(func) \
     wxEVENT_HANDLER_CAST(wxWindowModalDialogEventFunction, func)
 
+#define EVT_WINDOW_MODAL_DIALOG_CLOSED(winid, func) \
+    wx__DECLARE_EVT1(wxEVT_WINDOW_MODAL_DIALOG_CLOSED, winid, wxWindowModalDialogEventHandler(func))
+
 #endif
     // _WX_DIALOG_H_BASE_
 #endif
     // _WX_DIALOG_H_BASE_