-void MyListCtrl::OnGetInfo(wxListEvent& event)
-{
- wxString msg;
-
- msg << "OnGetInfo (" << event.m_item.m_itemId << ", " << event.m_item.m_col << ")";
- if ( event.m_item.m_mask & wxLIST_MASK_STATE )
- msg << " wxLIST_MASK_STATE";
- if ( event.m_item.m_mask & wxLIST_MASK_TEXT )
- msg << " wxLIST_MASK_TEXT";
- if ( event.m_item.m_mask & wxLIST_MASK_IMAGE )
- msg << " wxLIST_MASK_IMAGE";
- if ( event.m_item.m_mask & wxLIST_MASK_DATA )
- msg << " wxLIST_MASK_DATA";
- if ( event.m_item.m_mask & wxLIST_SET_ITEM )
- msg << " wxLIST_SET_ITEM";
- if ( event.m_item.m_mask & wxLIST_MASK_WIDTH )
- msg << " wxLIST_MASK_WIDTH";
- if ( event.m_item.m_mask & wxLIST_MASK_FORMAT )
- msg << " wxLIST_MASK_WIDTH";
-
- if ( event.m_item.m_mask & wxLIST_MASK_TEXT )
- {
- event.m_item.m_text = "My callback text";
- }
-
- wxLogMessage(msg);
-}
-
-void MyListCtrl::OnSetInfo(wxListEvent& event)
-{
- LogEvent(event, _T("OnSetInfo"));
-}
-