📄 savefiledialog.h
字号:
/**
@file
Thin encapsulation of the win32 save dialog
*/
#if !defined __SAVEFILEDIALOG__H__
#define __SAVEFILEDIALOG__H__
#include <windows.h>
#include <commdlg.h>
#include <cderr.h>
namespace Win
{
/**
SaveFileDialog class, encapsulates the Win32 Common Controlls
open dialogbox.
BAD THING: this is specialized for files *.pos and *.* */
class SaveFileDialog
{
public:
SaveFileDialog(HWND hwnd, PSTR defext);
PSTR GetFileName();
private:
OPENFILENAME _ofn;
TCHAR _szFileName[MAX_PATH]; //owned!!!
};
}
#endif //__SAVEFILEDIALOG__H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -