Skip to content

Commit

Permalink
Merge 9e3cfca into 526f512
Browse files Browse the repository at this point in the history
  • Loading branch information
Kohki Akikaze authored Dec 6, 2020
2 parents 526f512 + 9e3cfca commit 48e9136
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sakura_core/prop/CPropComFileName.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,14 @@ INT_PTR CPropFileName::DispatchEvent( HWND hwndDlg, UINT uMsg, WPARAM wParam, LP
break;

case IDC_BUTTON_FNAME_UPD: // 更新
::DlgItem_GetText( hwndDlg, IDC_EDIT_FNAME_FROM, szFrom, _MAX_PATH );
::DlgItem_GetText( hwndDlg, IDC_EDIT_FNAME_TO, szTo, _MAX_PATH );
if( -1 != nIndex ){
::DlgItem_GetText( hwndDlg, IDC_EDIT_FNAME_FROM, szFrom, _MAX_PATH );
::DlgItem_GetText( hwndDlg, IDC_EDIT_FNAME_TO, szTo, _MAX_PATH );
if( -1 != SetListViewItem_FILENAME( hListView, nIndex, szFrom, szTo, false ) ){
return TRUE;
}
}else{
// 未選択でリストにひとつも項目がない場合は追加しておく
// 項目を選択していない理由が「リストに項目がない」であれば、更新ボタンで項目を追加できるようにする
if( 0 == ListView_GetItemCount( hListView ) ){
if( -1 != SetListViewItem_FILENAME( hListView, 0, szFrom, szTo, true ) ){
return TRUE;
Expand Down

0 comments on commit 48e9136

Please sign in to comment.