Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
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


Thread View

Thread Author Date
SetForegroundWindow and FindWindowDave Jenkins2011-05-20 00:49
      RE: SetForegroundWindow and FindWindowDave Jenkins2011-05-20 16:07
      RE: SetForegroundWindow and FindWindowDan Rathbun2011-05-22 21:29
      RE: SetForegroundWindow and FindWindowDan Rathbun2011-05-22 21:48
      RE: SetForegroundWindow and FindWindowDan Rathbun2011-05-22 21:53

Post a followup to this message