tree control and dc::drawlines bug

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-07-10 23:08:39 +00:00
parent da7f8ac4dd
commit 4c6819972f
8 changed files with 151 additions and 144 deletions

View File

@@ -361,13 +361,13 @@ void MyFrame::OnListDrag( wxListEvent &event )
void MyFrame::OnTreeSelected( wxTreeEvent &event )
{
wxDirInfo *info = (wxDirInfo*) event.m_item.m_data;
SetStatusText( info->GetPath() );
if (info) SetStatusText( info->GetPath() );
};
void MyFrame::OnTreeKeyDown( wxTreeEvent &event )
{
wxDirInfo *info = (wxDirInfo*) event.m_item.m_data;
m_rightFile->GoToDir( info->GetPath() );
if (info) m_rightFile->GoToDir( info->GetPath() );
};
//-----------------------------------------------------------------------------