class Fzeet::SysLink

Constants

Prefix

Public Class Methods

crackNotification(args) click to toggle source
# File lib/fzeet/windows/comctl/SysLink.rb, line 68
def self.crackNotification(args)
        case args[:notification]
        when Windows::NM_CLICK
                args[:link] = Windows::NMLINK.new(FFI::Pointer.new(args[:lParam]))

                args[:id] = Windows.WCSTOMBS(args[:link][:item][:szID])
                args[:url] = Windows.WCSTOMBS(args[:link][:item][:szUrl])
        end
end
new(parent, id, opts = {}, &block) click to toggle source
Calls superclass method
# File lib/fzeet/windows/comctl/SysLink.rb, line 78
def initialize(parent, id, opts = {}, &block)
        super('SysLink', parent, id, opts)

        @parent.on(:notify, @id, &block) if block
end

Public Instance Methods

on(notification, &block) click to toggle source
# File lib/fzeet/windows/comctl/SysLink.rb, line 84
def on(notification, &block)
        @parent.on(:notify, @id, Fzeet.constant(notification, *self.class::Prefix[:notification]), &block)

        self
end