xtd.forms - Reference Guide  0.1.0
Modern c++17 library containing classes for creating Windows-based applications that take full advantage of the rich user interface features available in the Microsoft Windows, Apple macOS and Linux like Ubuntu operating system.
open_file_dialog.h
1 #pragma once
2 #include <xtd/io/file.h>
3 #include "file_dialog.h"
4 
6 namespace xtd {
8  namespace forms {
9  class open_file_dialog : public file_dialog {
10  public:
12  open_file_dialog() = default;
13 
14  std::ifstream open_file() const {return io::file::open_read(file_name_);}
15 
16  private:
17  bool run_file_dialog(intptr_t hwnd_owner) override;
18  };
19  }
20 }
Displays a dialog box from which the user can select a file.
Definition: file_dialog.h:33
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: open_file_dialog.h:9
static std::basic_ifstream< char_t > open_read(const std::basic_string< char_t > &path) noexcept
open_file_dialog()=default
Initializes a new instance of the common_dialog class.