Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/teraterm/addsetting.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6954 by doda, Wed Jul 12 09:25:51 2017 UTC revision 6955 by doda, Tue Oct 24 09:40:43 2017 UTC
# Line 1617  BOOL CLogPropPageDlg::OnCommand(WPARAM w Line 1617  BOOL CLogPropPageDlg::OnCommand(WPARAM w
1617                  case IDC_OPT_BINARY | (BN_CLICKED << 16):                  case IDC_OPT_BINARY | (BN_CLICKED << 16):
1618                          {                          {
1619                                  CButton *btn;                                  CButton *btn;
                                 // バイナリオプションが有効の場合、FixLogOption() で無効化している  
                                 // オプションを、ここでも無効にしなければならない。  
1620                                  btn = (CButton *)GetDlgItem(IDC_OPT_BINARY);                                  btn = (CButton *)GetDlgItem(IDC_OPT_BINARY);
1621                                  if (btn->GetCheck()) {                                  if (btn->GetCheck()) {
                                         ts.LogBinary = 1;  
   
                                         ts.LogTypePlainText = 0;  
                                         ts.LogTimestamp = 0;  
1622                                          GetDlgItem(IDC_OPT_PLAINTEXT)->EnableWindow(FALSE);                                          GetDlgItem(IDC_OPT_PLAINTEXT)->EnableWindow(FALSE);
1623                                          GetDlgItem(IDC_OPT_TIMESTAMP)->EnableWindow(FALSE);                                          GetDlgItem(IDC_OPT_TIMESTAMP)->EnableWindow(FALSE);
1624                                  } else {                                  } else {
                                         ts.LogBinary = 0;  
   
1625                                          GetDlgItem(IDC_OPT_PLAINTEXT)->EnableWindow(TRUE);                                          GetDlgItem(IDC_OPT_PLAINTEXT)->EnableWindow(TRUE);
1626                                          GetDlgItem(IDC_OPT_TIMESTAMP)->EnableWindow(TRUE);                                          GetDlgItem(IDC_OPT_TIMESTAMP)->EnableWindow(TRUE);
1627                                  }                                  }
1628                          }                          }
1629                          return TRUE;                          return TRUE;
   
                 case IDC_OPT_APPEND | (BN_CLICKED << 16):  
                         {  
                                 CButton *btn;  
                                 btn = (CButton *)GetDlgItem(IDC_OPT_APPEND);  
                                 if (btn->GetCheck()) {  
                                         ts.Append = 1;  
                                 } else {  
                                         ts.Append = 0;  
                                 }  
                         }  
                         return TRUE;  
   
                 case IDC_OPT_PLAINTEXT | (BN_CLICKED << 16):  
                         {  
                                 CButton *btn;  
                                 btn = (CButton *)GetDlgItem(IDC_OPT_PLAINTEXT);  
                                 if (btn->GetCheck()) {  
                                         ts.LogTypePlainText = 1;  
                                 } else {  
                                         ts.LogTypePlainText = 0;  
                                 }  
                         }  
                         return TRUE;  
   
                 case IDC_OPT_TIMESTAMP | (BN_CLICKED << 16):  
                         {  
                                 CButton *btn;  
                                 btn = (CButton *)GetDlgItem(IDC_OPT_TIMESTAMP);  
                                 if (btn->GetCheck()) {  
                                         ts.LogTimestamp = 1;  
                                 } else {  
                                         ts.LogTimestamp = 0;  
                                 }  
                         }  
                         return TRUE;  
   
                 case IDC_OPT_HIDEDLG | (BN_CLICKED << 16):  
                         {  
                                 CButton *btn;  
                                 btn = (CButton *)GetDlgItem(IDC_OPT_HIDEDLG);  
                                 if (btn->GetCheck()) {  
                                         ts.LogHideDialog = 1;  
                                 } else {  
                                         ts.LogHideDialog = 0;  
                                 }  
                         }  
                         return TRUE;  
   
                 case IDC_OPT_INCBUF | (BN_CLICKED << 16):  
                         {  
                                 CButton *btn;  
                                 btn = (CButton *)GetDlgItem(IDC_OPT_INCBUF);  
                                 if (btn->GetCheck()) {  
                                         ts.LogAllBuffIncludedInFirst = 1;  
                                 } else {  
                                         ts.LogAllBuffIncludedInFirst = 0;  
                                 }  
                         }  
                         return TRUE;  
1630          }          }
1631    
1632          return CPropertyPage::OnCommand(wParam, lParam);          return CPropertyPage::OnCommand(wParam, lParam);
# Line 1774  void CLogPropPageDlg::OnOK() Line 1706  void CLogPropPageDlg::OnOK()
1706                  /* 残りのメンバーは意図的に設定を残す。*/                  /* 残りのメンバーは意図的に設定を残す。*/
1707          }          }
1708    
1709  }          // Log Options
1710            btn = (CButton *)GetDlgItem(IDC_OPT_BINARY);
1711            if (btn->GetCheck()) {
1712                    ts.LogBinary = 1;
1713            }
1714            else {
1715                    ts.LogBinary = 0;
1716            }
1717    
1718            btn = (CButton *)GetDlgItem(IDC_OPT_APPEND);
1719            if (btn->GetCheck()) {
1720                    ts.Append = 1;
1721            }
1722            else {
1723                    ts.Append = 0;
1724            }
1725    
1726            btn = (CButton *)GetDlgItem(IDC_OPT_PLAINTEXT);
1727            if (btn->GetCheck()) {
1728                    ts.LogTypePlainText = 1;
1729            }
1730            else {
1731                    ts.LogTypePlainText = 0;
1732            }
1733    
1734            btn = (CButton *)GetDlgItem(IDC_OPT_TIMESTAMP);
1735            if (btn->GetCheck()) {
1736                    ts.LogTimestamp = 1;
1737            }
1738            else {
1739                    ts.LogTimestamp = 0;
1740            }
1741    
1742            btn = (CButton *)GetDlgItem(IDC_OPT_HIDEDLG);
1743            if (btn->GetCheck()) {
1744                    ts.LogHideDialog = 1;
1745            }
1746            else {
1747                    ts.LogHideDialog = 0;
1748            }
1749    
1750            btn = (CButton *)GetDlgItem(IDC_OPT_INCBUF);
1751            if (btn->GetCheck()) {
1752                    ts.LogAllBuffIncludedInFirst = 1;
1753            }
1754            else {
1755                    ts.LogAllBuffIncludedInFirst = 0;
1756            }
1757    }
1758    
1759    
1760  // CCygwinPropPageDlg ダイアログ  // CCygwinPropPageDlg ダイアログ

Legend:
Removed from v.6954  
changed lines
  Added in v.6955

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26