Method: Fzeet::ListView#initialize

Defined in:
lib/fzeet/windows/comctl/ListView.rb

#initialize(parent, id, opts = {}, &block) ⇒ ListView

Returns a new instance of ListView.



448
449
450
451
452
453
454
455
456
# 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