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

📄 getitem.cpp

📁 从各种控件中获得数据 自动生成XML文档 并通过XSLT转换为其他形式的XML文档
💻 CPP
字号:
// GetItem.cpp : 定义应用程序的类行为。
//
// Copyright by Johnson zhou. All right reserved.
// You can copy , modify and use as any purpose. I 'd like to see my name in 
// your credit.

#include "stdafx.h"
#include "GetItem.h"
#include "ParamItem.h"
#include "ParamTable.h"
#include "XMLParamResult.h"
#include "ParamListCtrl.h"
#include "GetItemDlg.h"
#include "path.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CGetItemApp

BEGIN_MESSAGE_MAP(CGetItemApp, CWinApp)
	ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()


// CGetItemApp 构造

CGetItemApp::CGetItemApp()
: m_Path(_T(""))
{
	// TODO: 在此处添加构造代码,
	// 将所有重要的初始化放置在 InitInstance 中
}


// 唯一的一个 CGetItemApp 对象

CGetItemApp theApp;


// CGetItemApp 初始化

BOOL CGetItemApp::InitInstance()
{
	// 如果一个运行在 Windows XP 上的应用程序清单指定要
	// 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
	//则需要 InitCommonControls()。否则,将无法创建窗口。
	InitCommonControls();
	CString strPath =__targv[0];
	CJohnSplitPath exePath(strPath);

	m_Path = exePath.GetDrive ();
	m_Path += exePath .GetDir ();
	//m_Path += _T("supports");
	long n = m_Path.GetLength ();
	if ( n >=1 )
	{
		if (m_Path.Mid(n-1)=="\\")
			m_Path= m_Path.Left(n-1);
	}

	CWinApp::InitInstance();

	AfxEnableControlContainer();

	

	CGetItemDlg dlg;
	m_pMainWnd = &dlg;
	INT_PTR nResponse = dlg.DoModal();
	if (nResponse == IDOK)
	{
		// TODO:在此放置处理何时用“确定”来关闭
		//对话框的代码
	}
	else if (nResponse == IDCANCEL)
	{
		// TODO:在此放置处理何时用“取消”来关闭
		//对话框的代码
	}

	// 由于对话框已关闭,所以将返回 FALSE 以便退出应用程序,
	// 而不是启动应用程序的消息泵。
	return FALSE;
}

⌨️ 快捷键说明

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