- if ( !wxGetApp().GetTopWindow() )
- return;
-
- wxTextCtrl *text = ((MyFrame *)wxGetApp().GetTopWindow())->m_logWindow;
- if ( !text )
- return;
-
- text->WriteText("OnGetInfo\n");
-
-/*
- ostream str(text);
-
- str << "OnGetInfo (" << event.m_item.m_itemId << ", " << event.m_item.m_col << ")";
- if ( event.m_item.m_mask & wxLIST_MASK_STATE )
- str << " wxLIST_MASK_STATE";
- if ( event.m_item.m_mask & wxLIST_MASK_TEXT )
- str << " wxLIST_MASK_TEXT";
- if ( event.m_item.m_mask & wxLIST_MASK_IMAGE )
- str << " wxLIST_MASK_IMAGE";
- if ( event.m_item.m_mask & wxLIST_MASK_DATA )
- str << " wxLIST_MASK_DATA";
- if ( event.m_item.m_mask & wxLIST_SET_ITEM )
- str << " wxLIST_SET_ITEM";
- if ( event.m_item.m_mask & wxLIST_MASK_WIDTH )
- str << " wxLIST_MASK_WIDTH";
- if ( event.m_item.m_mask & wxLIST_MASK_FORMAT )
- str << " wxLIST_MASK_WIDTH";
-
- if ( event.m_item.m_mask & wxLIST_MASK_TEXT )
- {
- event.m_item.m_text = "My callback text";
- }
- str << "\n";
- str.flush();
-*/
+ if ( !wxGetApp().GetTopWindow() )
+ return;
+
+ wxTextCtrl *text = ((MyFrame *)wxGetApp().GetTopWindow())->m_logWindow;
+ if ( !text )
+ return;
+
+ text->WriteText("OnGetInfo\n");
+
+ (*text) << "OnGetInfo (" << event.m_item.m_itemId << ", " << event.m_item.m_col << ")";
+ if ( event.m_item.m_mask & wxLIST_MASK_STATE )
+ (*text) << " wxLIST_MASK_STATE";
+ if ( event.m_item.m_mask & wxLIST_MASK_TEXT )
+ (*text) << " wxLIST_MASK_TEXT";
+ if ( event.m_item.m_mask & wxLIST_MASK_IMAGE )
+ (*text) << " wxLIST_MASK_IMAGE";
+ if ( event.m_item.m_mask & wxLIST_MASK_DATA )
+ (*text) << " wxLIST_MASK_DATA";
+ if ( event.m_item.m_mask & wxLIST_SET_ITEM )
+ (*text) << " wxLIST_SET_ITEM";
+ if ( event.m_item.m_mask & wxLIST_MASK_WIDTH )
+ (*text) << " wxLIST_MASK_WIDTH";
+ if ( event.m_item.m_mask & wxLIST_MASK_FORMAT )
+ (*text) << " wxLIST_MASK_WIDTH";
+
+ if ( event.m_item.m_mask & wxLIST_MASK_TEXT )
+ {
+ event.m_item.m_text = "My callback text";
+ }
+ (*text) << "\n";