Skip to content

Commit

Permalink
Merge pull request #1059 from berryzplus/feature/fix_dlgcharset
Browse files Browse the repository at this point in the history
文字コードの指定ダイアログのCPチェックの仕様を修正する
  • Loading branch information
berryzplus authored Sep 27, 2019
2 parents b1e4ded + d2e989b commit 5c73fa4
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 5c73fa4

Please sign in to comment.