class Fzeet::WindowMethods::Long

Public Class Methods

new(window) click to toggle source
# File lib/fzeet/windows/user/Window/WindowMethods.rb, line 54
def initialize(window) @window = window end

Public Instance Methods

[](c) click to toggle source
# File lib/fzeet/windows/user/Window/WindowMethods.rb, line 56
def [](c)
        Windows.SetLastError(0)

        Windows.GetWindowLong(@window.handle, Fzeet.constant(c, :gwl_, :gwlp_, :dwl_)).tap { |result|
                raise 'GetWindowLong failed.' if result == 0 && Windows.GetLastError() != 0
        }
end
[]=(c, l) click to toggle source
# File lib/fzeet/windows/user/Window/WindowMethods.rb, line 64
def []=(c, l)
        Windows.SetLastError(0)

        Windows.SetWindowLong(@window.handle, Fzeet.constant(c, :gwl_, :gwlp_, :dwl_), l).tap { |result|
                raise 'SetWindowLong failed.' if result == 0 && Windows.GetLastError() != 0
        }
end