indexing description: "Receives and dispatch the Windows messages to the Eiffel objects." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class WEL_DISPATCHER inherit WEL_ABSTRACT_DISPATCHER DISPOSABLE create make feature {NONE} -- Initialization make is -- Initialize the C variables do cwel_set_window_procedure_address ($window_procedure) cwel_set_dialog_procedure_address ($dialog_procedure) cwel_set_dispatcher_object (Current) end feature {NONE} -- Implementation dispose is -- Wean `Current' local default_object: like Current do cwel_release_dispatcher_object cwel_set_dispatcher_object (default_object) end feature {NONE} -- Externals cwel_set_window_procedure_address (address: POINTER) is external "C [macro %"disptchr.h%"]" end cwel_set_dialog_procedure_address (address: POINTER) is external "C [macro %"disptchr.h%"]" end cwel_set_dispatcher_object (dispatcher: like Current) is external "C macro signature (EIF_OBJECT) use %"disptchr.h%"" end cwel_release_dispatcher_object is external "C [macro %"disptchr.h%"]" end end -- class WEL_DISPATCHER --|---------------------------------------------------------------- --| Windows Eiffel Library: library of reusable components for ISE Eiffel. --| Copyright (C) 1985-2004 Eiffel Software. All rights reserved. --| Duplication and distribution prohibited. May be used only with --| ISE Eiffel, under terms of user license. --| Contact Eiffel Software for any other use. --| --| Interactive Software Engineering Inc. --| dba Eiffel Software --| 356 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Contact us at: http://www.eiffel.com/general/email.html --| Customer support: http://support.eiffel.com --| For latest info on our award winning products, visit: --| http://www.eiffel.com --|----------------------------------------------------------------