single.cpp

来自「用于EVC的Dialog例子。主要是用CDC进行画图、绘制点」· C++ 代码 · 共 52 行

CPP
52
字号
// Single.cpp: implementation of the CSingle class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Test.h"
#include "Single.h"

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

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CSingle::CSingle()
{

}

CSingle::~CSingle()
{

}

CTestDlg* CSingle::pDlg = NULL;
BOOL CSingle::_isCreared = TRUE;
//CWnd* CSingle::hWnd = NULL;

/*void CSingle::SetHWnd(CWnd* h)
{
	hWnd = h;
}*/

/*CWnd* CSingle::GetHWnd()
{
	return hWnd;
}*/

CTestDlg* CSingle::getInstance()
{
	if(CSingle::pDlg==NULL)
	{
		CSingle::pDlg = new CTestDlg();
	}

	return CSingle::pDlg;
}

⌨️ 快捷键说明

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