Class: Fzeet::SysLink
- Includes:
- SysLinkMethods
- Defined in:
- lib/fzeet/windows/comctl/SysLink.rb
Constant Summary collapse
- Prefix =
{ xstyle: [:ws_ex_], style: [:lws_, :ws_], message: [:lm_, :ccm_, :wm_], notification: [:nm_] }
Constants included from WindowMethods
Instance Attribute Summary
Attributes inherited from Control
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(parent, id, opts = {}, &block) ⇒ SysLink
constructor
A new instance of SysLink.
- #on(notification, &block) ⇒ Object
Methods inherited from Control
Methods included from WindowMethods
#[], #capture=, #capture?, #dialog=, #dialog?, #dlgmsg?, #drawMenuBar, #eachChild, #enabled=, #enabled?, #focus=, #focus?, #invalidate, #location, #location=, #long, #menu, #menu=, #message, #paint, #position, #position=, #postmsg, #question, #rect, #reframe, #sendmsg, #show, #size, #size=, #style, #style?, #text, #text=, #textlen, #topmost=, #topmost?, #update, #visible=, #visible?, #xstyle, #xstyle?
Methods included from Toggle
Constructor Details
#initialize(parent, id, opts = {}, &block) ⇒ SysLink
Returns a new instance of SysLink.
59 60 61 62 63 |
# File 'lib/fzeet/windows/comctl/SysLink.rb', line 59 def initialize(parent, id, opts = {}, &block) super('SysLink', parent, id, opts) @parent.on(:notify, @id, &block) if block end |
Class Method Details
.crackNotification(args) ⇒ Object
49 50 51 52 53 54 55 56 57 |
# File 'lib/fzeet/windows/comctl/SysLink.rb', line 49 def self.crackNotification(args) case args[:notification] when Windows::NM_CLICK args[:link] = Windows::NMLINK.new(FFI::Pointer.new(args[:lParam])) args[:id] = Windows.WCSTOMBS(args[:link][:item][:szID]) args[:url] = Windows.WCSTOMBS(args[:link][:item][:szUrl]) end end |