📄 ad.cpp
字号:
// ad.cpp : implementation file
//
#include "stdafx.h"
#include "salsary.h"
#include "ad.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// ad dialog
ad::ad(CWnd* pParent /*=NULL*/)
: CDialog(ad::IDD, pParent)
{
//{{AFX_DATA_INIT(ad)
m_RadioButton = 0;
//}}AFX_DATA_INIT
}
void ad::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(ad)
DDX_Radio(pDX, IDC_RADIO1, m_RadioButton);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(ad, CDialog)
//{{AFX_MSG_MAP(ad)
ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
ON_BN_CLICKED(IDC_op1, Onop1)
ON_BN_CLICKED(IDC_op4, Onop4)
ON_BN_CLICKED(IDC_op2, Onop2)
ON_BN_CLICKED(IDC_op3, Onop3)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// ad message handlers
void ad::OnRadio1()
{
m_RadioButton=0; // TODO: Add your control notification handler code here
}
void ad::OnRadio2()
{
m_RadioButton=1; // TODO: Add your control notification handler code here
}
#include"add_user.h"
#include"del_user.h"
void ad::Onop1()
{
if(m_RadioButton==0)
{add_user Add_user; // TODO: Add your control notification handler code here
Add_user.DoModal();
}
else if(m_RadioButton==1)
{del_user Del_user;
Del_user.DoModal();
}}
#include"ad_modify.h"
void ad::Onop4()
{
ad_modify Ad_modify;
Ad_modify.DoModal(); // TODO: Add your control notification handler code here
}
#include"search.h"
void ad::Onop2()
{
search Search;
Search.DoModal(); // TODO: Add your control notification handler code here
}
#include"show.h"
void ad::Onop3()
{
show Show; // TODO: Add your control notification handler code here
Show.DoModal();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -