class Fzeet::ShellFileOpenDialog

Public Class Methods

new(opts = {}) { |self| ... } click to toggle source
Calls superclass method
# File lib/fzeet/windows/comdlg/ShellFileDialog.rb, line 72
def initialize(opts = {})
        super()

        begin
                yield self
        ensure
                Release()
        end if block_given?
end

Public Instance Methods

multiselect=(multiselect) click to toggle source
# File lib/fzeet/windows/comdlg/ShellFileDialog.rb, line 82
def multiselect=(multiselect)
        if multiselect
                SetOptions(Windows::FOS_ALLOWMULTISELECT)
        else
                opts = nil

                FFI::MemoryPointer.new(:pointer) { |p| GetOptions(p); opts = p.get_ulong(0) }

                SetOptions(opts & ~Windows::FOS_ALLOWMULTISELECT)
        end
end