count.cpp

来自「这是书上的代码」· C++ 代码 · 共 69 行

CPP
69
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?