indexing description: "Picture that consists of a bitmapped image." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class WEL_ICON inherit WEL_GRAPHICAL_RESOURCE create make_by_id, make_by_name, make_by_predefined_id, make_by_file, make_by_pointer, make_by_icon_info feature {NONE} -- Implementation load_item (hinstance, id: POINTER) is -- Load icon. do item := cwin_load_icon (hinstance, id) end feature {NONE} -- Implementation destroy_resource: BOOLEAN is -- SDK DestroyIcon/DestroyCursor do Result := cwin_destroy_icon (item) end feature {NONE} -- Externals cwin_load_icon (hinstance: POINTER; id: POINTER): POINTER is -- SDK LoadIcon external "C [macro ] (HINSTANCE, LPCSTR): EIF_POINTER" alias "LoadIcon" end cwin_destroy_icon (hicon: POINTER): BOOLEAN is -- SDK DestroyIcon external "C [macro ] (HICON): BOOL" alias "DestroyIcon" end feature {NONE} -- Implementation Image_type: INTEGER is -- Constant defining the type of the image -- See WEL_IMAGE_CONSTANTS for possible values. do Result := Image_icon end end -- class WEL_ICON --|---------------------------------------------------------------- --| 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 --|----------------------------------------------------------------