| Message: 96511 |
 |
BY: Dan Rathbun (danzoid61) DATE: 2011-05-22 21:48 SUBJECT: RE: SetForegroundWindow and FindWindow Also...
the Win32 namespace is part of the win32-api and windows-pr projects. Functionality should be added to the project(s) thru the project's github site(s).
https://github.com/djberg96/win32-api
https://github.com/djberg96/windows-pr
BUT.. these are specific Window wrapper methods which should already be defined in the Windows::Window module.
IF not either add them there, or add the statement:
module_function()
at the top of file 'window.rb' (inside module Windows::Window,) that defines the window specific API calls, (if you wish to have library style module methods.)
If you did not download the windows-pr package, then do so, and save yourself alot of work.
http://rubygems.org/gems/windows-pr
You can always create a temporary local reference inside your own namespace that points at another namespace, such as:
lib = Windows::Window
h = lib.findWindow(0,"My Fancy Dialog")
lib.class
>> Module | |