From 11d1f1599cea954c43049818f3620e810e6ac11e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C5=82odzimierz=20Skiba?= Date: Thu, 6 Jan 2005 12:30:08 +0000 Subject: [PATCH] wxUSE_LOG (Smartphone) fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/notebook/notebook.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/samples/notebook/notebook.cpp b/samples/notebook/notebook.cpp index a7fdeea343..8f4127ef39 100644 --- a/samples/notebook/notebook.cpp +++ b/samples/notebook/notebook.cpp @@ -627,6 +627,12 @@ void MyFrame::OnIdle( wxIdleEvent& WXUNUSED(event) ) } } +#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) \ { \ @@ -671,7 +677,7 @@ void MyFrame::OnBook(wxBookEvent& event) \ wxLogMessage(logMsg.c_str()); \ \ - m_text->SetInsertionPointEnd(); \ + BOOKEVENT_LOG \ } #if wxUSE_NOTEBOOK