Class: Fzeet::Frame

Inherits:
Object
  • Object
show all
Defined in:
lib/fzeet/windows/user/Window/MDI.rb

Instance Method Summary collapse

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

#activeChildObject



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