class Fzeet::PopupMenu
Attributes
Public Class Methods
new()
click to toggle source
# File lib/fzeet/windows/user/Menu.rb, line 233 def initialize @submenus = [] @handle = Windows.DetonateLastError(FFI::Pointer::NULL, :CreatePopupMenu); attach end
Public Instance Methods
dispose()
click to toggle source
# File lib/fzeet/windows/user/Menu.rb, line 241 def dispose; Windows.DestroyMenu(@handle); rdetach end
track(window, x, y, flags = 0)
click to toggle source
# File lib/fzeet/windows/user/Menu.rb, line 243 def track(window, x, y, flags = 0) Windows.TrackPopupMenu(@handle, Fzeet.flags(flags, :tpm_), x, y, 0, window.handle, nil); self end