class Fzeet::ListView

Constants

Prefix

Attributes

header[R]
items[R]

Public Class Methods

crackNotification(args) click to toggle source
# File lib/fzeet/windows/comctl/ListView.rb, line 440
def self.crackNotification(args)
        case args[:notification]
        when Windows::LVN_COLUMNCLICK
                args[:nmlv] = Windows::NMLISTVIEW.new(FFI::Pointer.new(args[:lParam]))
                args[:index] = args[:nmlv][:iSubItem]
        end
end
new(parent, id, opts = {}, &block) click to toggle source
Calls superclass method
# File lib/fzeet/windows/comctl/ListView.rb, line 448
def initialize(parent, id, opts = {}, &block)
        super('SysListView32', parent, id, opts)

        @header = Handle.wrap(FFI::Pointer.new(sendmsg(:getheader)), WindowMethods, HeaderMethods)

        @items = []

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

Public Instance Methods

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

        self
end