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

📄 count.cpp

📁 这是书上的代码
💻 CPP
字号:
// Count.cpp : implementation file
//

#include "stdafx.h"
#include "XYCALC.h"
#include "Count.h"

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

/////////////////////////////////////////////////////////////////////////////
// CCount dialog

//CString CCount::countchar="";
CCount::CCount(CKXDlg* pParent /*=NULL*/)
	: CDialog(CCount::IDD, pParent),m_pParent(pParent)
{
	//{{AFX_DATA_INIT(CCount)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	if (Create(CCount::IDD,pParent))
	{
		// ** Creation succeeded so show the window
		ShowWindow(SW_SHOW);
	}
}


void CCount::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CCount)
	DDX_Control(pDX, IDC_LIST1, m_list);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CCount, CDialog)
	//{{AFX_MSG_MAP(CCount)
	ON_WM_CLOSE()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCount message handlers


void CCount::OnOK() 
{
	// TODO: Add extra validation here
//	CString a;
//	a=CKXdlg::countchar;
//	m_list.AddString(a);
//	CDialog::OnOK();
}

extern CCount* g_pDlgModeless;
void CCount::OnClose() 
{
	// TODO: Add your message handler code here and/or call default
	
	CDialog::OnClose();
	   delete this;
   g_pDlgModeless = NULL;
}

⌨️ 快捷键说明

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