vtkapp.cpp

来自「VTK入门样例(种类齐全)」· C++ 代码 · 共 43 行

CPP
43
字号
#include "stdafx.h"
#include "vtkApp.h"
#include "vtkDlg.h"


BEGIN_MESSAGE_MAP(CVTKApp, CWinApp)

END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CVTKGUIApp construction

CVTKApp::CVTKApp()
{
	// TODO: add construction code here,
	// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CVTKGUIApp object

CVTKApp theApp;

BOOL CVTKApp::InitInstance()
{
	
	
	CvtkDlg dlg;
	m_pMainWnd = &dlg;
	int nResponse = dlg.DoModal();
	if (nResponse == IDOK)
	{
		// TODO: Place code here to handle when the dialog is
		//  dismissed with OK
	}
	else if (nResponse == IDCANCEL)
	{
		// TODO: Place code here to handle when the dialog is
		//  dismissed with Cancel
	}
	
	return FALSE;
}

⌨️ 快捷键说明

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