+
+// Programmer-friendly macros for writing XRC handlers:
+
+#define XRC_ADD_STYLE(style) AddStyle(wxT(#style), style)
+#define ADD_STYLE XRC_ADD_STYLE /* deprecated, don't use!! */
+
+#define XRC_MAKE_INSTANCE(variable, classname) \
+ classname *variable = NULL; \
+ if (m_instance) \
+ variable = wxStaticCast(m_instance, classname); \
+ if (!variable) \
+ variable = new classname;