xtd 0.2.0
open_file_dialog.h
Go to the documentation of this file.
1 #pragma once
5 #include "file_dialog.h"
6 #include <xtd/io/file>
7 
9 namespace xtd {
11  namespace forms {
28  class forms_export_ open_file_dialog final : public file_dialog {
29  public:
31 
34  open_file_dialog() = default;
36 
38 
42  std::ifstream open_file() const noexcept;
43 
47  virtual bool multiselect() const noexcept;
52  virtual open_file_dialog& multiselect(bool value);
54 
55  private:
56  bool run_file_dialog(intptr hwnd_owner) override;
57  void run_file_sheet(intptr owner) override;
58  };
59  }
60 }
Displays a dialog box from which the user can select a file.
Definition: file_dialog.h:43
intmax_t intptr
Represent a pointer or a handle.
Definition: types.h:151
Contains xtd::forms::file_dialog dialog.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Displays a standard dialog box that prompts the user to open a file. This class cannot be inherited...
Definition: open_file_dialog.h:28
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13