Skip to content

Commit

Permalink
Merge 203f7be into d0a92d0
Browse files Browse the repository at this point in the history
  • Loading branch information
suconbu authored Oct 27, 2020
2 parents d0a92d0 + 203f7be commit aa539a4
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions sakura_core/dlg/CDlgExec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,24 +134,29 @@ void CDlgExec::SetData( void )
/*****************************
* データ設定 *
*****************************/
wcscpy( m_szCommand, m_pShareData->m_sHistory.m_aCommands[0] );
hwndCombo = GetItemHwnd( IDC_COMBO_m_szCommand );
Combo_ResetContent( hwndCombo );
::DlgItem_SetText( GetHwnd(), IDC_COMBO_TEXT, m_szCommand );
int nSize = m_pShareData->m_sHistory.m_aCommands.size();
for( i = 0; i < nSize; ++i ){
Combo_AddString( hwndCombo, m_pShareData->m_sHistory.m_aCommands[i] );
const int nCommandsCount = m_pShareData->m_sHistory.m_aCommands.size();
if( 0 < nCommandsCount ){
wcscpy( m_szCommand, m_pShareData->m_sHistory.m_aCommands[0] );
::DlgItem_SetText( GetHwnd(), IDC_COMBO_TEXT, m_szCommand );
for( i = 0; i < nCommandsCount; ++i ){
Combo_AddString( hwndCombo, m_pShareData->m_sHistory.m_aCommands[i] );
}
Combo_SetCurSel( hwndCombo, 0 );
}
Combo_SetCurSel( hwndCombo, 0 );

wcscpy( m_szCurDir, m_pShareData->m_sHistory.m_aCurDirs[0] );
hwndCombo = GetItemHwnd( IDC_COMBO_CUR_DIR );
Combo_ResetContent( hwndCombo );
::DlgItem_SetText( GetHwnd(), IDC_COMBO_TEXT, m_szCurDir );
for( i = 0; i < m_pShareData->m_sHistory.m_aCurDirs.size(); ++i ){
Combo_AddString( hwndCombo, m_pShareData->m_sHistory.m_aCurDirs[i] );
const int nCurDirsCount = m_pShareData->m_sHistory.m_aCurDirs.size();
if( 0 < nCurDirsCount ){
wcscpy( m_szCurDir, m_pShareData->m_sHistory.m_aCurDirs[0] );
::DlgItem_SetText( GetHwnd(), IDC_COMBO_TEXT, m_szCurDir );
for( i = 0; i < nCurDirsCount; ++i ){
Combo_AddString( hwndCombo, m_pShareData->m_sHistory.m_aCurDirs[i] );
}
Combo_SetCurSel( hwndCombo, 0 );
}
Combo_SetCurSel( hwndCombo, 0 );

int nOpt;
hwndCombo = GetItemHwnd( IDC_COMBO_CODE_GET );
Expand Down

0 comments on commit aa539a4

Please sign in to comment.