openfiledialog.h

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

H
30
字号
/**
 @file
 Thin encapsulation of the win32 open dialog
*/
#if !defined _OPENFILEDIALOG_H_
#define _OPENFILEDIALOG_H_
#include <windows.h>
#include <commdlg.h>
#include <cderr.h>

namespace Win
{
    /**
     OpenFileDialog class, encapsulates the Win32 Common Controlls
     open dialogbox.
     BAD THING: this is specialized for files *.pos and *.*   */
    class OpenFileDialog
    {
    public:
        OpenFileDialog(HWND hwndParent);

        PSTR GetFileName();
    private:
        OPENFILENAME _ofn;
        TCHAR _szFileName[MAX_PATH]; 
    };
}
#endif //_OPENFILEDIALOG_H_

⌨️ 快捷键说明

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