Skip to content

Commit

Permalink
delete:buttom2 clicked code
Browse files Browse the repository at this point in the history
  • Loading branch information
xengine-qyt committed Mar 30, 2022
1 parent 2c7a956 commit 6df912a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 21 deletions.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ BEGIN_MESSAGE_MAP(CXEngineAuthorizeAppDlg, CDialogEx)
ON_WM_QUERYDRAGICON()
ON_BN_CLICKED(IDC_BUTTON3, &CXEngineAuthorizeAppDlg::OnBnClickedButton3)
ON_BN_CLICKED(IDC_BUTTON1, &CXEngineAuthorizeAppDlg::OnBnClickedButton1)
ON_BN_CLICKED(IDC_BUTTON2, &CXEngineAuthorizeAppDlg::OnBnClickedButton2)
ON_NOTIFY(TCN_SELCHANGE, IDC_TAB1, &CXEngineAuthorizeAppDlg::OnTcnSelchangeTab1)
ON_MESSAGE(WINSDK_SKIN_USERMSG_TRAY, OnAddTrayIcon)//添加消息映射
ON_BN_CLICKED(IDC_BUTTON4, &CXEngineAuthorizeAppDlg::OnBnClickedButton4)
Expand Down Expand Up @@ -261,25 +260,6 @@ void CXEngineAuthorizeAppDlg::OnBnClickedButton1()
}


void CXEngineAuthorizeAppDlg::OnBnClickedButton2()
{
// TODO: 在此添加控件通知处理程序代码
CFileDialog m_FileDlg(FALSE, _T(".log"), NULL, NULL, _T("Log日志文件(*.log)|*.log|文本文件(*.txt)|(*.txt)||"));//生成一个对话框
if (IDCANCEL == m_FileDlg.DoModal())
{
return;
}
CString m_StrSaveFile = m_FileDlg.GetPathName();
CFile m_File;
m_File.Open(m_StrSaveFile.GetBuffer(), CFile::modeCreate | CFile::modeWrite | CFile::modeNoTruncate);

CString m_StrMsg;
m_EditLog.GetWindowText(m_StrMsg);
m_File.Write(m_StrMsg.GetBuffer(), m_StrMsg.GetLength());
m_File.Close();
}


void CXEngineAuthorizeAppDlg::OnTcnSelchangeTab1(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: 在此添加控件通知处理程序代码
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class CXEngineAuthorizeAppDlg : public CDialogEx
CEdit m_EditLog;
afx_msg void OnBnClickedButton3();
afx_msg void OnBnClickedButton1();
afx_msg void OnBnClickedButton2();
CButton m_BtnStartService;
CButton m_BtnStopService;
CTabCtrl m_TabCtrl;
Expand Down

0 comments on commit 6df912a

Please sign in to comment.