-const int wxEVT_QUERY_LAYOUT_INFO = wxNewEventType();
-const int wxEVT_CALCULATE_LAYOUT = wxNewEventType();
+wxDEFINE_EVENT( wxEVT_QUERY_LAYOUT_INFO, wxQueryLayoutInfoEvent );
+wxDEFINE_EVENT( wxEVT_CALCULATE_LAYOUT, wxCalculateLayoutEvent );
+
+
+// ----------------------------------------------------------------------------
+// wxSashLayoutWindow
+// ----------------------------------------------------------------------------