savefiledialog.h

来自「c+++ game uploading now」· C头文件 代码 · 共 31 行

H
31
字号
/**
 @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 + =
减小字号Ctrl + -
显示快捷键?