【VC开源代码栏目提醒】:本文主要为网学会员提供Count.cpp,希望对需要Count.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;
}
上一篇:
CornerView.cpp
下一篇:
不规则零件优化排样的神经网络混合优化算法