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

📄 accountinputdoc.cpp

📁 从FTP下载文件下载到本地
💻 CPP
字号:
// AccountInputDoc.cpp : implementation of the CAccountInputDoc class
//

#include "stdafx.h"
#include "AccountInput.h"

#include "AccountInputDoc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CAccountInputDoc

IMPLEMENT_DYNCREATE(CAccountInputDoc, CDocument)

BEGIN_MESSAGE_MAP(CAccountInputDoc, CDocument)
	//{{AFX_MSG_MAP(CAccountInputDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAccountInputDoc construction/destruction

CAccountInputDoc::CAccountInputDoc()
{
	// TODO: add one-time construction code here
    //x=0;
	//y=0;
	m_phrase.RemoveAll();
}

CAccountInputDoc::~CAccountInputDoc()
{
}

BOOL CAccountInputDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)
	//m_phrase="dfafd  fasfdf  afdafd d                fasdf fas              fddgdgdfadfa                       dsfgdgdafdvcvdgfafddafdgfcvcadfafdgadffadfa";
	return TRUE;
}

	



/////////////////////////////////////////////////////////////////////////////
// CAccountInputDoc serialization

void CAccountInputDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CAccountInputDoc diagnostics

#ifdef _DEBUG
void CAccountInputDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CAccountInputDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CAccountInputDoc commands
void CAccountInputDoc::SetPhrase(CString  strMsg) 
{
	  
	int nNum=0;
	nNum=m_phrase.GetSize();
    m_phrase.Add(strMsg);
	this->UpdateAllViews(NULL, 0, NULL);
	  
}
 void CAccountInputDoc::GetPhrase(CStringArray &m_Array) 
{
	     m_Array.RemoveAll();
		 int nNum=0;
		 nNum=m_phrase.GetSize();
		 for (int i=0;i<nNum;i++)
		 {
             CString  strTemp=m_phrase.GetAt(i);
			 m_Array.Add(strTemp);
		 }
		
}

⌨️ 快捷键说明

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