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.
10 11 12 13 14 |
# File 'lib/fzeet/windows/user/Window/MDI.rb', line 10 def initialize(opts = {}) (opts[:style] ||= []) << :overlappedwindow << :clipsiblings << :clipchildren super end |
Instance Method Details
#activate(child) ⇒ Object
22 23 24 25 26 |
# File 'lib/fzeet/windows/user/Window/MDI.rb', line 22 def activate(child) Windows.SendMessage(client.handle, Windows::WM_MDIACTIVATE, child.handle.to_i, 0) self end |
#activeChild ⇒ Object
16 17 18 19 20 |
# File 'lib/fzeet/windows/user/Window/MDI.rb', line 16 def activeChild ((pchild = FFI::Pointer.new(Windows.SendMessage(client.handle, Windows::WM_MDIGETACTIVE, 0, 0))).null?) ? nil : Handle.instance(pchild) end |