class Fzeet::Windows::WebBrowserEvents

Public Instance Methods

Invoke(dispid, *rest) click to toggle source
# File lib/fzeet/windows/shdocvw.rb, line 49
def Invoke(dispid, *rest)
        method = (self.class::VTBL.members - IDispatch::VTBL.members).find { |name|
                dispidName = "DISPID_#{name.upcase}"

                Windows.const_defined?(dispidName) && Windows.const_get(dispidName) == dispid
        }

        return E_NOTIMPL unless method

        send(method, DISPPARAMS.new(rest[3]))

        S_OK
end