⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newclassdlg.cpp

📁 售票系统 售票系统 售票系统售票系统售票系统
💻 CPP
字号:
// NewClassDlg.cpp : implementation file
//

#include "stdafx.h"
#include "Note.h"
#include "NewClassDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CNewClassDlg dialog


CNewClassDlg::CNewClassDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CNewClassDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CNewClassDlg)
	m_strNewClassName = _T("");
	m_strInfo = _T("");
	//}}AFX_DATA_INIT
}


void CNewClassDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CNewClassDlg)
	DDX_Text(pDX, IDC_CLASSNAME, m_strNewClassName);
	DDX_Text(pDX, IDC_INFO, m_strInfo);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CNewClassDlg, CDialog)
	//{{AFX_MSG_MAP(CNewClassDlg)
	ON_BN_CLICKED(IDC_RACLASS, OnRaClass)
	ON_BN_CLICKED(IDC_RADOC, OnRaDoc)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CNewClassDlg message handlers

void CNewClassDlg::OnRaClass() 
{
	// TODO: Add your control notification handler code here
    	((CEdit*)GetDlgItem(IDC_INFO))->SetReadOnly();
		m_strInfo.Empty();
		m_bIsDoc=FALSE;
	
}

BOOL CNewClassDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	CheckRadioButton(IDC_RACLASS,IDC_RADOC,IDC_RACLASS);
	((CEdit*)GetDlgItem(IDC_INFO))->SetReadOnly();
	if(m_bIsRaDocEnabled==FALSE)
		GetDlgItem(IDC_RADOC)->EnableWindow(FALSE);
	m_strInfo.Empty();
	m_strNewClassName.Empty();
	m_bIsDoc=FALSE;
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CNewClassDlg::OnRaDoc() 
{
	// TODO: Add your control notification handler code here
	 ((CEdit*)GetDlgItem(IDC_INFO))->SetReadOnly(FALSE);
	 m_bIsDoc=TRUE;
}


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -