Module: Watir::Win32
- Included in:
 - ModalDialog, PageContainer
 
- Defined in:
 - lib/watir/win32.rb
 
Constant Summary collapse
- GetUnknown =
 Win32API.new(@@iedialog_file, 'GetUnknown', ['l', 'p'], 'v')
- User32 =
 DL.dlopen('user32')
- FindWindowEx =
 GetWindow = IsWindow = lambda do |*args| raise NotImplementedError, "1.9's DL API not compatible with 1.8, see http://www.ruby-forum.com/topic/138277" end
- GetWindow =
          
method for this found in wet-winobj/wet/winobjects/WinUtils.rb
 - IsWindow =
 - GW_HWNDFIRST =
          
GetWindows Constants
 0- GW_HWNDLAST =
 1- GW_HWNDNEXT =
 2- GW_HWNDPREV =
 3- GW_OWNER =
 4- GW_CHILD =
 5- GW_ENABLEDPOPUP =
 6- GW_MAX =
 6- @@iedialog_file =
          
this will find the IEDialog.dll file in its build location
 (File.(File.dirname(__FILE__) + '/..') + "/watir/IEDialog/Release/IEDialog.dll").gsub('/', '\\')
Class Method Summary collapse
- 
  
    
      .window_exists?(hwnd)  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    
Does the window with the specified window handle (hwnd) exist?.
 
Class Method Details
.window_exists?(hwnd) ⇒ Boolean
Does the window with the specified window handle (hwnd) exist?
      31 32 33 34  | 
    
      # File 'lib/watir/win32.rb', line 31 def self.window_exists? hwnd rtn, junk = IsWindow[hwnd] rtn == 1 end  |