]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/notebook.h
XPM updates
[wxWidgets.git] / include / wx / notebook.h
index 63bbee89ead8109b379af773f81db424b2a71db3..91564c3a4db80328f82bbb483371b6b56f480f70 100644 (file)
@@ -46,42 +46,42 @@ typedef void (wxEvtHandler::*wxNotebookEventFunction)(wxNotebookEvent&);
 // Truncation in 16-bit BC++ means we need to define these differently
 #if defined(__BORLANDC__) && defined(__WIN16__)
 #define EVT_NOTEBOOK_PAGE_CHANGED(id, fn)                                   \
-  {                                                                         \
-    wxEVT_COMMAND_NB_PAGE_CHANGED,                                    \
+  wxEventTableEntry(                                                        \
+    wxEVT_COMMAND_NB_PAGE_CHANGED,                                          \
     id,                                                                     \
     -1,                                                                     \
     (wxObjectEventFunction)(wxEventFunction)(wxNotebookEventFunction) &fn,  \
     NULL                                                                    \
-  },
+  ),
 
 #define EVT_NOTEBOOK_PAGE_CHANGING(id, fn)                                  \
-  {                                                                         \
-    wxEVT_COMMAND_NB_PAGE_CHANGING,                                   \
+  wxEventTableEntry(                                                        \
+    wxEVT_COMMAND_NB_PAGE_CHANGING,                                         \
     id,                                                                     \
     -1,                                                                     \
     (wxObjectEventFunction)(wxEventFunction)(wxNotebookEventFunction) &fn,  \
     NULL                                                                    \
-  },
+  ),
 
 #else
 
 #define EVT_NOTEBOOK_PAGE_CHANGED(id, fn)                                   \
-  {                                                                         \
+  wxEventTableEntry(                                                        \
     wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,                                    \
     id,                                                                     \
     -1,                                                                     \
     (wxObjectEventFunction)(wxEventFunction)(wxNotebookEventFunction) &fn,  \
     NULL                                                                    \
-  },
+  ),
 
 #define EVT_NOTEBOOK_PAGE_CHANGING(id, fn)                                  \
-  {                                                                         \
+  wxEventTableEntry(                                                        \
     wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING,                                   \
     id,                                                                     \
     -1,                                                                     \
     (wxObjectEventFunction)(wxEventFunction)(wxNotebookEventFunction) &fn,  \
     NULL                                                                    \
-  },
+  ),
 
 #endif