DlgQuit.cpp
上传用户:jzscgs158
上传日期:2022-05-25
资源大小:8709k
文件大小:2k
- // DlgQuit.cpp : implementation file
- //
- #include "stdafx.h"
- #include "NCShop.h"
- #include "DlgQuit.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CDlgQuit dialog
- CDlgQuit::CDlgQuit(CWnd* pParent /*=NULL*/)
- : CDialog(CDlgQuit::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CDlgQuit)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- m_intStyle=1;
- }
- void CDlgQuit::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CDlgQuit)
- DDX_Control(pDX, IDOK, m_BtnOk);
- DDX_Control(pDX, IDCANCEL, m_BtnCancel);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CDlgQuit, CDialog)
- //{{AFX_MSG_MAP(CDlgQuit)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CDlgQuit message handlers
- BOOL CDlgQuit::OnInitDialog()
- {
- CDialog::OnInitDialog();
- // TODO: Add extra initialization here
- CheckRadioButton(IDC_RADIO1,IDC_RADIO2,IDC_RADIO1);
- m_BtnOk.SetXIcon(IDI_ICONBUTTON);
- m_BtnCancel.SetXIcon(IDI_ICONBUTTON);
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- void CDlgQuit::OnOK()
- {
- // TODO: Add extra validation here
- if(GetCheckedRadioButton(IDC_RADIO1,IDC_RADIO2)==IDC_RADIO1)
- m_intStyle=0;
- else
- m_intStyle=1;
- CDialog::OnOK();
- }