📄 dphoto.cpp
字号:
// DPhoto.cpp : implementation file
//
#include "stdafx.h"
#include "商品销售管理系统.h"
#include "DPhoto.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDPhoto dialog
CDPhoto::CDPhoto(CWnd* pParent /*=NULL*/)
: CDialog(CDPhoto::IDD, pParent)
{
//{{AFX_DATA_INIT(CDPhoto)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CDPhoto::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDPhoto)
DDX_Control(pDX, IDC_STA1, m_sta1);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDPhoto, CDialog)
//{{AFX_MSG_MAP(CDPhoto)
ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
ON_BN_CLICKED(IDC_RADIO3, OnRadio3)
ON_BN_CLICKED(IDC_RADIO5, OnRadio5)
ON_BN_CLICKED(IDC_RADIO7, OnRadio7)
ON_BN_CLICKED(IDC_RADIO8, OnRadio8)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDPhoto message handlers
void CDPhoto::OnOK()
{
// TODO: Add extra validation here
//CDialog::OnOK();
}
void CDPhoto::OnRadio1()
{
m_PhotoID=1;
}
void CDPhoto::OnRadio2()
{
m_PhotoID=2;
}
void CDPhoto::OnRadio3()
{
m_PhotoID=3;
}
void CDPhoto::OnRadio5()
{
m_PhotoID=4;
}
void CDPhoto::OnRadio7()
{
m_PhotoID=5;
}
void CDPhoto::OnRadio8()
{
m_PhotoID=6;
}
BOOL CDPhoto::OnInitDialog()
{
CDialog::OnInitDialog();
m_PhotoID=1;
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
BOOL CDPhoto::PreTranslateMessage(MSG* pMsg)
{
if(pMsg->message==WM_KEYDOWN && pMsg->wParam==13)
this->OnCancel();
return CDialog::PreTranslateMessage(pMsg);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -