Tried to fix corrupted display of wxTextCtrl,
Corrected wxFileDialog's multiple file option. Corrected event mask for CaptureMouse(), Small change to "best visual" code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1155,10 +1155,11 @@ void wxFileDialog::GetPaths( wxArrayString& paths ) const
|
||||
item.m_mask = wxLIST_MASK_TEXT;
|
||||
|
||||
item.m_itemId = m_list->GetNextItem( -1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED );
|
||||
while ( item.m_itemId != -1 ) {
|
||||
while ( item.m_itemId != -1 )
|
||||
{
|
||||
m_list->GetItem( item );
|
||||
paths.Add( dir + item.m_text );
|
||||
item.m_itemId = m_list->GetNextItem( item.m_itemId + 1,
|
||||
item.m_itemId = m_list->GetNextItem( item.m_itemId,
|
||||
wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED );
|
||||
}
|
||||
}
|
||||
@@ -1177,10 +1178,11 @@ void wxFileDialog::GetFilenames(wxArrayString& files) const
|
||||
item.m_mask = wxLIST_MASK_TEXT;
|
||||
|
||||
item.m_itemId = m_list->GetNextItem( -1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED );
|
||||
while ( item.m_itemId != -1 ) {
|
||||
while ( item.m_itemId != -1 )
|
||||
{
|
||||
m_list->GetItem( item );
|
||||
files.Add( item.m_text );
|
||||
item.m_itemId = m_list->GetNextItem( item.m_itemId + 1,
|
||||
item.m_itemId = m_list->GetNextItem( item.m_itemId,
|
||||
wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED );
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user