DlgOptLog.cpp
资源名称:ROA3.40.rar [点击查看]
上传用户:tianheyiqi
上传日期:2010-04-16
资源大小:282k
文件大小:2k
源码类别:
外挂编程
开发平台:
Visual C++
- // DlgOptLog.cpp : implementation file
- //
- #include "stdafx.h"
- #include "ROA.h"
- #include "DlgOptLog.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CDlgOptLog dialog
- CDlgOptLog::CDlgOptLog(CWnd* pParent /*=NULL*/)
- : CDialog(CDlgOptLog::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CDlgOptLog)
- m_nFile = -1;
- m_nRo = -1;
- m_nWindow = -1;
- //}}AFX_DATA_INIT
- }
- void CDlgOptLog::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CDlgOptLog)
- DDX_Radio(pDX, IDC_RAD_FILE_NONE, m_nFile);
- DDX_Radio(pDX, IDC_RAD_RO_NONE, m_nRo);
- DDX_Radio(pDX, IDC_RAD_WND_NONE, m_nWindow);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CDlgOptLog, CDialog)
- //{{AFX_MSG_MAP(CDlgOptLog)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CDlgOptLog message handlers
- BOOL CDlgOptLog::OnInitDialog()
- {
- CDialog::OnInitDialog();
- m_nFile = llFile + 1;
- m_nWindow = llDlg + 1;
- m_nRo = llRo + 1;
- UpdateData(false);
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- void CDlgOptLog::OnOK()
- {
- // TODO: Add extra validation here
- UpdateData(true);
- llFile = (LOG_LEVEL)(m_nFile - 1);
- llDlg = (LOG_LEVEL)(m_nWindow - 1);
- llRo = (LOG_LEVEL)(m_nRo - 1);
- CDialog::OnOK();
- }