class Fzeet::MonthCalendar

Constants

Prefix

Public Class Methods

crackNotification(args) click to toggle source
# File lib/fzeet/windows/comctl/MonthCalendar.rb, line 96
def self.crackNotification(args)
        case args[:notification]
        when Windows::MCN_SELCHANGE
                args[:sc] = Windows::NMSELCHANGE.new(FFI::Pointer.new(args[:lParam]))
                args[:st1], args[:st2] = args[:sc][:stSelStart], args[:sc][:stSelEnd]
        end
end
new(parent, id, opts = {}, &block) click to toggle source
Calls superclass method
# File lib/fzeet/windows/comctl/MonthCalendar.rb, line 104
def initialize(parent, id, opts = {}, &block)
        super('SysMonthCal32', 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/MonthCalendar.rb, line 110
def on(notification, &block)
        @parent.on(:notify, @id, Fzeet.constant(notification, *self.class::Prefix[:notification]), &block)

        self
end