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

📄 wtl_app.hpp

📁 j2me is based on j2mepolish, client & server for mobile application.
💻 HPP
字号:

//         Copyright E骾n O'Callaghan 2007 - 2008.
// Distributed under the Boost Software License, Version 1.0.
//    (See accompanying file LICENSE_1_0.txt or copy at
//          http://www.boost.org/LICENSE_1_0.txt)

#ifndef AUX_WTL_APP_HPP
#define AUX_WTL_APP_HPP

#define WINVER 0x0500
#define _WIN32_WINNT 0x0500
#define _WIN32_IE 0x0500

#define WIN32_LEAN_AND_MEAN
#define STRICT

#define _WTL_NO_AUTOMATIC_NAMESPACE
#define _ATL_NO_AUTOMATIC_NAMESPACE
#define _WTL_USE_CSTRING

#include <winsock2.h>
#include <shellapi.h>
#include <atlbase.h>
#include <atlapp.h>

extern WTL::CAppModule _Module;

#include <atlwin.h>
#include <atlframe.h>
#include <atlmisc.h>
#include <atlcrack.h>
#include <atldlgs.h>
#include <atlsplit.h>
#include <atlctrls.h>
#include <atlctrlw.h>
#include <atlctrlx.h>
#include <atlddx.h>
#include <atlscrl.h>

#include <string>
#include <vector>
#include <sstream>

#include <boost/signals.hpp>
#include <boost/function.hpp>

#include <boost/static_assert.hpp>
#include <boost/filesystem/path.hpp>

namespace aux
{

class app_impl;

class app_module
{
public:	
	app_module();
	void init();

	const std::wstring& exe_string() const;
	const boost::filesystem::wpath& exe_path() const;
	const boost::filesystem::wpath& initial_path() const;

	const boost::filesystem::wpath set_working_directory(const boost::filesystem::wpath&);
	const boost::filesystem::wpath& working_directory() const;

	void set_app_dir(std::wstring app_dir);
	const boost::filesystem::wpath& non_roaming_directory() const;
	
	const std::vector<std::wstring>& command_args() const;
	
	std::wstring res_wstr(unsigned uID);	
	void res_set_dll(std::wstring dll);
	void res_revert();
	std::pair<void*,size_t> res_find_lock(unsigned name, unsigned type);
	
private:
	boost::shared_ptr<app_impl> pimpl;	
};

#ifndef AUX_APP_IMPL_UNIT
static app_module app;
#endif

}

#endif // AUX_WTL_APP_HPP

⌨️ 快捷键说明

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