Skip to content

Commit

Permalink
Merge d2e989b into 52c1959
Browse files Browse the repository at this point in the history
  • Loading branch information
berryzplus authored Sep 25, 2019
2 parents 52c1959 + d2e989b commit f39b53d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 3 additions & 7 deletions sakura_core/dlg/CDlgSetCharSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ CDlgSetCharSet::CDlgSetCharSet()
{
m_pnCharSet = NULL; // 文字コードセット
m_pbBom = NULL; // 文字コードセット
m_bCP = false;
}

/* モーダルダイアログの表示 */
Expand Down Expand Up @@ -73,11 +72,9 @@ BOOL CDlgSetCharSet::OnBnClicked( int wID )
{
switch( wID ){
case IDC_CHECK_CP:
if( !m_bCP ){
m_bCP = true;
::EnableWindow( GetItemHwnd( IDC_CHECK_CP ), FALSE );
CCodePage::AddComboCodePages( GetHwnd(), m_hwndCharSet, -1 );
}
::CheckDlgButton( GetHwnd(), IDC_CHECK_CP, TRUE );
::EnableWindow( GetItemHwnd( IDC_CHECK_CP ), FALSE );
CCodePage::AddComboCodePages( GetHwnd(), m_hwndCharSet, -1 );
return TRUE;
case IDC_BUTTON_HELP:
/* 「文字コードセット設定」のヘルプ */
Expand Down Expand Up @@ -179,7 +176,6 @@ void CDlgSetCharSet::SetData( void )
}
}
if( -1 == nCurIdx ){
m_bCP = true;
::CheckDlgButton( GetHwnd(), IDC_CHECK_CP, TRUE );
::EnableWindow( GetItemHwnd( IDC_CHECK_CP ), FALSE );
nCurIdx = CCodePage::AddComboCodePages( GetHwnd(), m_hwndCharSet, *m_pnCharSet );
Expand Down
1 change: 0 additions & 1 deletion sakura_core/dlg/CDlgSetCharSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class CDlgSetCharSet : public CDialog

ECodeType* m_pnCharSet; // 文字コードセット
bool* m_pbBom; // BOM
bool m_bCP;

HWND m_hwndCharSet;
HWND m_hwndCheckBOM;
Expand Down

0 comments on commit f39b53d

Please sign in to comment.