genfiles.h
来自「一个实现文件加密的源码」· C头文件 代码 · 共 41 行
H
41 行
#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 + =
减小字号Ctrl + -
显示快捷键?