Class: Fzeet::Frame
- Inherits:
-
Object
- Object
- Fzeet::Frame
- Defined in:
- lib/fzeet/windows/user/Window/MDI.rb
Instance Method Summary collapse
- #activate(child) ⇒ Object
- #activeChild ⇒ Object
-
#initialize(opts = {}) ⇒ Frame
constructor
A new instance of Frame.
Constructor Details
#initialize(opts = {}) ⇒ Frame
Returns a new instance of Frame.
29 30 31 32 33 |
# File 'lib/fzeet/windows/user/Window/MDI.rb', line 29 def initialize(opts = {}) (opts[:style] ||= []) << :overlappedwindow << :clipsiblings << :clipchildren super end |
Instance Method Details
#activate(child) ⇒ Object
41 42 43 44 45 |
# File 'lib/fzeet/windows/user/Window/MDI.rb', line 41 def activate(child) Windows.SendMessage(client.handle, Windows::WM_MDIACTIVATE, child.handle.to_i, 0) self end |
#activeChild ⇒ Object
35 36 37 38 39 |
# File 'lib/fzeet/windows/user/Window/MDI.rb', line 35 def activeChild ((pchild = FFI::Pointer.new(Windows.SendMessage(client.handle, Windows::WM_MDIGETACTIVE, 0, 0))).null?) ? nil : Handle.instance(pchild) end |