Mercurial > mercurial > hgweb_mover.cgi
diff src/myframe.cpp @ 6:99d612849255
v0.3
author | pyon@macmini |
---|---|
date | Sat, 08 Oct 2011 17:00:33 +0900 |
parents | 3b734fd6ee2b |
children | bfa0800f1176 |
line wrap: on
line diff
--- a/src/myframe.cpp Thu Oct 06 20:27:54 2011 +0900 +++ b/src/myframe.cpp Sat Oct 08 17:00:33 2011 +0900 @@ -1,5 +1,5 @@ // Filename : mainframe.cpp -// Last Change: 06-Oct-2011. +// Last Change: 08-Oct-2011. // #include "symbol.h" #include "common.h" @@ -320,14 +320,15 @@ } /* 被保険者のフォルダを開く */ -void MyFrame::OnOpenHhsDir(wxListEvent& WXUNUSED(event)) +void MyFrame::OnOpenHhsDir(wxListEvent& event) { wxString hhsdir = m_textCtrlMoveDir->GetValue(); hhsdir.Append( wxFILE_SEP_PATH ); - long n = m_listCtrl->GetNextItem( -1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED ); - wxListItem item; - item.SetId(n); - m_listCtrl->GetColumn( 1, item ); + + wxListItem item = event.GetItem(); + item.SetColumn(1); + item.SetMask(wxLIST_MASK_TEXT); + m_listCtrl->GetItem( item ); hhsdir.Append( item.GetText() ); wxMessageBox(hhsdir); //wxString execmd = wxT("explorer ") + hhsdir;