indexing description: "Window manager which is able to retrieve an Eiffel % %object from a HWND." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class WEL_WINDOW_MANAGER inherit WEL_WINDOWS_ROUTINES feature -- Basic operations register_window (window: WEL_WINDOW) is -- Register `window' in the window manager. require window_not_void: window /= Void unregistered: not registered (window) do window.register_current_window ensure registered: registered (window) end feature -- Status report registered (window: WEL_WINDOW): BOOLEAN is -- Is `window' registered? require window_not_void: window /= Void local l_data, null: POINTER do -- Default is `Result := False'. if window.exists then l_data := window.internal_data if l_data /= null then Result := eif_id_object ( feature {WEL_INTERNAL_DATA}.object_id (l_data)) /= Void end end end feature {WEL_DISPATCHER} -- Dialog creation new_dialog: WEL_DIALOG is -- Dialog which will be created after receiving WM_INITDIALOG message. do Result := new_dialog_cell.item end feature {NONE} -- Implementation new_dialog_cell: CELL [WEL_DIALOG] is -- Save dialog that is going to be created once create Result.put (Void) end cwin_set_window_long (hwnd: POINTER; offset: INTEGER; value: POINTER) is -- SDK SetWindowLong external "C [macro %"wel.h%"] (HWND, int, LONG)" alias "SetWindowLong" end end -- class WEL_WINDOW_MANAGER --|---------------------------------------------------------------- --| Windows Eiffel Library: library of reusable components for ISE Eiffel. --| Copyright (C) 1986-2001 Interactive Software Engineering Inc. --| All rights reserved. Duplication and distribution prohibited. --| May be used only with ISE Eiffel, under terms of user license. --| Contact ISE for any other use. --| --| Interactive Software Engineering Inc. --| ISE Building --| 360 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Electronic mail --| Customer support: http://support.eiffel.com> --| For latest info see award-winning pages: http://www.eiffel.com --|----------------------------------------------------------------