}
}
+#if USE_LOG
+ #define BOOKEVENT_LOG m_text->SetInsertionPointEnd();
+#else
+ #define BOOKEVENT_LOG
+#endif
+
#define BOOKEVENT(OnBook,wxBookEvent,bookStr,wxEVT_PAGE_CHANGED,wxEVT_PAGE_CHANGING,s_num) \
void MyFrame::OnBook(wxBookEvent& event) \
{ \
\
wxLogMessage(logMsg.c_str()); \
\
- m_text->SetInsertionPointEnd(); \
+ BOOKEVENT_LOG \
}
#if wxUSE_NOTEBOOK