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

📄 genfiles.h

📁 文件加密解密源代码
💻 H
字号:
#ifndef GENFILES_H_INCLUDED
#define GENFILES_H_INCLUDED
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///[GenFiles - General purpose functions for working with files]////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// All functions are static.
/// Using those methods requires linkage with common controls library (comctrl32.lib/shell32lib).
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Written by Nir Dremer
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include <windows.h>

namespace GenLib
{

struct GenFiles
{
	/* 
		Types of open file dialog boxs.
	*/
	enum FILE_DIALOG_TYPE
	{ 
		OPEN_FILE_DIALOG = 0,
		SAVE_FILE_DIALOG
	};

	/* 
		Openning file browsing window to choose file.
	*/
	static BOOL fileDialog(const enum FILE_DIALOG_TYPE dialogType, const HWND parent, const char *topic, const char *extList, char *result, const int resultSize, const int extraFlags = 0);

	/* 
		Openning folder browsing window to choose file. 
		Requires linkage with ole32.lib. Result is assumed to be at least MAX_PATH size.
	*/
	static BOOL folderDialog(const HWND parent, const char *topic, char *result, const bool allowNew = true, const int extraFlags = 0);

};

};
#endif // #define GENFILES_H_INCLUDED

⌨️ 快捷键说明

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