wxUSE_LOG (Smartphone) fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -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) \
 | 
					#define BOOKEVENT(OnBook,wxBookEvent,bookStr,wxEVT_PAGE_CHANGED,wxEVT_PAGE_CHANGING,s_num) \
 | 
				
			||||||
void MyFrame::OnBook(wxBookEvent& event)                                                   \
 | 
					void MyFrame::OnBook(wxBookEvent& event)                                                   \
 | 
				
			||||||
{                                                                                          \
 | 
					{                                                                                          \
 | 
				
			||||||
@@ -671,7 +677,7 @@ void MyFrame::OnBook(wxBookEvent& event)
 | 
				
			|||||||
                                                                                           \
 | 
					                                                                                           \
 | 
				
			||||||
    wxLogMessage(logMsg.c_str());                                                          \
 | 
					    wxLogMessage(logMsg.c_str());                                                          \
 | 
				
			||||||
                                                                                           \
 | 
					                                                                                           \
 | 
				
			||||||
    m_text->SetInsertionPointEnd();                                                        \
 | 
					    BOOKEVENT_LOG                                                                          \
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if wxUSE_NOTEBOOK
 | 
					#if wxUSE_NOTEBOOK
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user