indexing
	description: "List box which can have multiple selections."
	legal: "See notice at end of class."
	status: "See notice at end of class."
	date: "$Date: 2006-03-22 23:29:03 -0800 (Wed, 22 Mar 2006) $"
	revision: "$Revision: 57641 $"

class interface
	WEL_MULTIPLE_SELECTION_LIST_BOX

create 
	make (a_parent: WEL_WINDOW; a_x, a_y, a_width, a_height, an_id: INTEGER_32)
			-- Make a list box
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			a_parent_not_void: a_parent /= Void
			a_parent_exists: a_parent.exists
		ensure -- from WEL_LIST_BOX
			parent_set: parent = a_parent
			exists: exists
			id_set: id = an_id

	make_by_id (a_parent: WEL_DIALOG; an_id: INTEGER_32)
			-- Make a control identified by `an_id' with `a_parent'
			-- as parent.
			-- (from WEL_CONTROL)
		require -- from WEL_CONTROL
			a_parent_not_void: a_parent /= Void
			positive_id: an_id > 0
		ensure -- from WEL_CONTROL
			parent_set: parent = a_parent
			id_set: id = an_id

feature -- Access

	background_color: WEL_COLOR_REF
			-- Background color used for the background of the
			-- control
			-- Can be redefined by the user
			-- (from WEL_LIST_BOX)
		require -- from WEL_COLOR_CONTROL
			exists: exists
		ensure -- from WEL_COLOR_CONTROL
			background_color_not_void: Result /= Void

	color_3ddkshadow: INTEGER_32 is 21
			-- Dark shadow for three-dimensional display elements.
			--
			-- Declared in Windows as COLOR_3DDKSHADOW
			-- (from WEL_COLOR_CONSTANTS)

	color_3dface: INTEGER_32 is 15
			-- Face color for three-dimensional display elements and
			-- for dialog box backgrounds.
			--
			-- Declared in Windows as COLOR_3DFACE
			-- Was declared in WEL_COLOR_CONSTANTS as synonym of Color_btnface.
			-- (from WEL_COLOR_CONSTANTS)

	color_3dhighlight: INTEGER_32 is 20
			-- Highlight color for three-dimensional display elements
			-- (for edges facing the light source.)
			--
			-- Declared in Windows as COLOR_3DHILIGHT
			-- Was declared in WEL_COLOR_CONSTANTS as synonym of Color_3dhilight, Color_btnhilight and Color_btnhighlight.
			-- (from WEL_COLOR_CONSTANTS)

	color_3dhilight: INTEGER_32 is 20
			-- Highlight color for three-dimensional display elements
			-- (for edges facing the light source.)
			--
			-- Declared in Windows as COLOR_3DHILIGHT
			-- Was declared in WEL_COLOR_CONSTANTS as synonym of Color_3dhighlight, Color_btnhilight and Color_btnhighlight.
			-- (from WEL_COLOR_CONSTANTS)

	color_3dlight: INTEGER_32 is 22
			-- Light color for three-dimensional display elements
			-- (for edges facing the light source.)
			--
			-- Declared in Windows as COLOR_3DLIGHT
			-- (from WEL_COLOR_CONSTANTS)

	color_3dshadow: INTEGER_32 is 16
			-- Shadow color for three-dimensional display elements
			-- (for edges facing away from the light source).
			--
			-- Declared in Windows as COLOR_3DSHADOW
			-- Was declared in WEL_COLOR_CONSTANTS as synonym of Color_btnshadow.
			-- (from WEL_COLOR_CONSTANTS)

	color_activeborder: INTEGER_32 is 10
			-- Active window border.
			--
			-- Declared in Windows as COLOR_ACTIVEBORDER
			-- (from WEL_COLOR_CONSTANTS)

	color_activecaption: INTEGER_32 is 2
			-- Active window title bar. 
			--
			-- Windows 98/Me, Windows 2000 or later:
			--   Specifies the left side color in the color gradient of an active
			--   window's title bar if the gradient effect is enabled.
			--
			-- Declared in Windows as COLOR_ACTIVECAPTION
			-- (from WEL_COLOR_CONSTANTS)

	color_appworkspace: INTEGER_32 is 12
			-- Background color of multiple document interface (MDI) applications.
			--
			-- Declared in Windows as COLOR_APPWORKSPACE
			-- (from WEL_COLOR_CONSTANTS)

	color_background: INTEGER_32 is 1
			-- Desktop.
			--
			-- Declared in Windows as COLOR_BACKGROUND
			-- Was declared in WEL_COLOR_CONSTANTS as synonym of Color_desktop.
			-- (from WEL_COLOR_CONSTANTS)

	color_btnface: INTEGER_32 is 15
			-- Face color for three-dimensional display elements and
			-- for dialog box backgrounds.
			--
			-- Declared in Windows as COLOR_3DFACE
			-- Was declared in WEL_COLOR_CONSTANTS as synonym of Color_3dface.
			-- (from WEL_COLOR_CONSTANTS)

	color_btnhighlight: INTEGER_32 is 20
			-- Highlight color for three-dimensional display elements
			-- (for edges facing the light source.)
			--
			-- Declared in Windows as COLOR_3DHILIGHT
			-- Was declared in WEL_COLOR_CONSTANTS as synonym of Color_3dhilight, Color_3dhighlight and Color_btnhilight.
			-- (from WEL_COLOR_CONSTANTS)

	color_btnhilight: INTEGER_32 is 20
			-- Highlight color for three-dimensional display elements
			-- (for edges facing the light source.)
			--
			-- Declared in Windows as COLOR_3DHILIGHT
			-- Was declared in WEL_COLOR_CONSTANTS as synonym of Color_3dhilight, Color_3dhighlight and Color_btnhighlight.
			-- (from WEL_COLOR_CONSTANTS)

	color_btnshadow: INTEGER_32 is 16
			-- Shadow color for three-dimensional display elements
			-- (for edges facing away from the light source).
			--
			-- Declared in Windows as COLOR_3DSHADOW
			-- Was declared in WEL_COLOR_CONSTANTS as synonym of Color_3dshadow.
			-- (from WEL_COLOR_CONSTANTS)

	color_btntext: INTEGER_32 is 18
			-- Text on push buttons.
			--
			-- Declared in Windows as COLOR_BTNTEXT
			-- (from WEL_COLOR_CONSTANTS)

	color_captiontext: INTEGER_32 is 9
			-- Text in caption, size box, and scroll bar arrow box.
			--
			-- Declared in Windows as COLOR_CAPTIONTEXT
			-- (from WEL_COLOR_CONSTANTS)

	color_desktop: INTEGER_32 is 1
			-- Desktop.
			--
			-- Declared in Windows as COLOR_BACKGROUND
			-- Was declared in WEL_COLOR_CONSTANTS as synonym of Color_background.
			-- (from WEL_COLOR_CONSTANTS)

	color_gradientactivecaption: INTEGER_32 is 27
			-- Windows 98/Me, Windows 2000 or later:
			--   Right side color in the color gradient of an active window's
			--   title bar. COLOR_ACTIVECAPTION specifies the left side color.
			--   Use SPI_GETGRADIENTCAPTIONS with the SystemParametersInfo
			--   function to determine whether the gradient effect is enabled.
			--
			-- Declared in Windows as COLOR_GRADIENTACTIVECAPTION
			-- (from WEL_COLOR_CONSTANTS)

	color_gradientinactivecaption: INTEGER_32 is 28
			-- Windows 98/Me, Windows 2000 or later:
			--   Right side color in the color gradient of an inactive window's
			--   title bar. COLOR_INACTIVECAPTION specifies the left side color.
			--
			-- Declared in Windows as COLOR_GRADIENTINACTIVECAPTION
			-- (from WEL_COLOR_CONSTANTS)

	color_graytext: INTEGER_32 is 17
			-- Grayed (disabled) text. This color is set to 0 if the current
			-- display driver does not support a solid gray color.
			--
			-- Declared in Windows as COLOR_GRAYTEXT
			-- (from WEL_COLOR_CONSTANTS)

	color_highlight: INTEGER_32 is 13
			-- Item(s) selected in a control.
			--
			-- Declared in Windows as COLOR_HIGHLIGHT
			-- (from WEL_COLOR_CONSTANTS)

	color_highlighttext: INTEGER_32 is 14
			-- Text of item(s) selected in a control.
			--
			-- Declared in Windows as COLOR_HIGHLIGHTTEXT
			-- (from WEL_COLOR_CONSTANTS)

	color_hotlight: INTEGER_32 is 26
			-- Windows 98/Me, Windows 2000 or later:
			--   Color for a hot-tracked item. Single clicking a hot-tracked
			--   item executes the item.
			--
			-- Declared in Windows as COLOR_HOTLIGHT
			-- (from WEL_COLOR_CONSTANTS)

	color_inactiveborder: INTEGER_32 is 11
			-- Inactive window border.
			--
			-- Declared in Windows as COLOR_INACTIVEBORDER
			-- (from WEL_COLOR_CONSTANTS)

	color_inactivecaption: INTEGER_32 is 3
			-- Inactive window caption. 
			--
			-- Windows 98/Me, Windows 2000 or later:
			--   Specifies the left side color in the color gradient of an inactive
			--   window's title bar if the gradient effect is enabled.
			--
			-- Declared in Windows as COLOR_INACTIVECAPTION
			-- (from WEL_COLOR_CONSTANTS)

	color_inactivecaptiontext: INTEGER_32 is 19
			-- Color of text in an inactive caption.
			--
			-- Declared in Windows as COLOR_INACTIVECAPTIONTEXT
			-- (from WEL_COLOR_CONSTANTS)

	color_infobk: INTEGER_32 is 24
			-- Background color for tooltip controls.
			--
			-- Declared in Windows as COLOR_INFOBK
			-- (from WEL_COLOR_CONSTANTS)

	color_infotext: INTEGER_32 is 23
			-- Text color for tooltip controls.
			--
			-- Declared in Windows as COLOR_INFOTEXT
			-- (from WEL_COLOR_CONSTANTS)

	color_menu: INTEGER_32 is 4
			-- Menu background.
			--
			-- Declared in Windows as COLOR_MENU
			-- (from WEL_COLOR_CONSTANTS)

	color_menubar: INTEGER_32 is 30
			-- Windows XP:
			--   The background color for the menu bar when menus appear as 
			--   flat menus (see SystemParametersInfo). However, Color_menu
			--   continues to specify the background color of the menu popup.
			--
			-- Declared in Windows as COLOR_MENUBAR
			-- (from WEL_COLOR_CONSTANTS)

	color_menuhilight: INTEGER_32 is 29
			-- Windows XP:
			--   The color used to highlight menu items when the menu appears
			--   as a flat menu (see SystemParametersInfo). The highlighted
			--   menu item is outlined with COLOR_HIGHLIGHT.
			--
			-- Declared in Windows as COLOR_MENUHILIGHT
			-- (from WEL_COLOR_CONSTANTS)

	color_menutext: INTEGER_32 is 7
			-- Text in menus.
			--
			-- Declared in Windows as COLOR_MENUTEXT
			-- (from WEL_COLOR_CONSTANTS)

	color_scrollbar: INTEGER_32 is 0
			-- Scroll bar gray area.
			--
			-- Declared in Windows as COLOR_SCROLLBAR
			-- (from WEL_COLOR_CONSTANTS)

	color_window: INTEGER_32 is 5
			-- Window background.
			--
			-- Declared in Windows as COLOR_WINDOW
			-- (from WEL_COLOR_CONSTANTS)

	color_windowframe: INTEGER_32 is 6
			-- Window frame.
			--
			-- Declared in Windows as COLOR_WINDOWFRAME
			-- (from WEL_COLOR_CONSTANTS)

	color_windowtext: INTEGER_32 is 8
			-- Text in windows.
			--
			-- Declared in Windows as COLOR_WINDOWTEXT
			-- (from WEL_COLOR_CONSTANTS)

	commands: WEL_COMMAND_MANAGER
			-- Command manager associated to the current window.
			-- (from WEL_WINDOW)

	default_processing: BOOLEAN
			-- (from WEL_RETURN_VALUE)

	font: WEL_FONT
			-- Font with which the control is drawing its text.
			-- (from WEL_CONTROL)
		require -- from WEL_CONTROL
			exists: exists
		ensure -- from WEL_CONTROL
			result_not_void: Result /= Void

	foreground_color: WEL_COLOR_REF
			-- foreground color used for the text of the
			-- control
			-- Can be redefined by the user
			-- (from WEL_LIST_BOX)
		require -- from WEL_COLOR_CONTROL
			exists: exists
		ensure -- from WEL_COLOR_CONTROL
			foreground_color_not_void: Result /= Void

	generating_type: STRING_8
			-- Name of current object's generating type
			-- (type of which it is a direct instance)
			-- (from ANY)

	generator: STRING_8
			-- Name of current object's generating class
			-- (base class of the type of which it is a direct instance)
			-- (from ANY)

	has_return_value: BOOLEAN
			-- Should the window procedure return a value?
			-- (from WEL_RETURN_VALUE)

	i_th_text (i: INTEGER_32): STRING_32
			-- Text at the zero-based index `i'
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists
			i_large_enough: i >= 0
			i_small_enough: i < count
		ensure -- from WEL_LIST_BOX
			result_exists: Result /= Void
			same_result_as_strings: Result.is_equal (strings.item (i))

	i_th_text_length (i: INTEGER_32): INTEGER_32
			-- Length text at the zero-based index `i'
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists
			i_large_enough: i >= 0
			i_small_enough: i < count
		ensure -- from WEL_LIST_BOX
			positive_result: Result >= 0
			same_result_as_strings: Result = strings.item (i).count

	id: INTEGER_32
			-- Control id
			-- (from WEL_CONTROL)

	item: POINTER
			-- Generic Windows handle or structure pointer.
			-- Can be a HWND, HICON, RECT *, WNDCLASS *, etc...
			-- (from WEL_ANY)

	message_return_value: POINTER
			-- Return value of the window procedure.
			-- (from WEL_RETURN_VALUE)
		require -- from WEL_RETURN_VALUE
			has_return_value: has_return_value

	parent: WEL_WINDOW
			-- Parent window
			-- (from WEL_WINDOW)

	strings: ARRAY [STRING_32]
			-- Strings contained in the list box
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists
		ensure -- from WEL_LIST_BOX
			result_not_void: Result /= Void
			count_ok: Result.count = count
	
feature -- Measurement

	count: INTEGER_32
			-- Number of lines
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists
		ensure -- from WEL_LIST_BOX
			positive_result: Result >= 0
	
feature -- Comparison

	frozen deep_equal (some: ANY; other: like arg #1): BOOLEAN
			-- Are `some' and `other' either both void
			-- or attached to isomorphic object structures?
			-- (from ANY)
		ensure -- from ANY
			shallow_implies_deep: standard_equal (some, other) implies Result
			both_or_none_void: (some = Void) implies (Result = (other = Void))
			same_type: (Result and (some /= Void)) implies some.same_type (other)
			symmetric: Result implies deep_equal (other, some)

	frozen equal (some: ANY; other: like arg #1): BOOLEAN
			-- Are `some' and `other' either both void or attached
			-- to objects considered equal?
			-- (from ANY)
		ensure -- from ANY
			definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.is_equal (other))

	is_equal (other: like Current): BOOLEAN
			-- Is `other' attached to an object considered
			-- equal to current object?
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void
		ensure -- from ANY
			symmetric: Result implies other.is_equal (Current)
			consistent: standard_is_equal (other) implies Result

	frozen standard_equal (some: ANY; other: like arg #1): BOOLEAN
			-- Are `some' and `other' either both void or attached to
			-- field-by-field identical objects of the same type?
			-- Always uses default object comparison criterion.
			-- (from ANY)
		ensure -- from ANY
			definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.standard_is_equal (other))

	frozen standard_is_equal (other: like Current): BOOLEAN
			-- Is `other' attached to an object of the same type
			-- as current object, and field-by-field identical to it?
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void
		ensure -- from ANY
			same_type: Result implies same_type (other)
			symmetric: Result implies other.standard_is_equal (Current)
	
feature -- Status report

	absolute_x: INTEGER_32
			-- Absolute x position
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			Result = window_rect.x

	absolute_y: INTEGER_32
			-- Absolute y position
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			Result = window_rect.y

	background_brush: WEL_BRUSH
			-- Current window background color used to refresh the window when
			-- requested by the WM_ERASEBKGND windows message.
			-- By default there is no background
			-- (from WEL_WINDOW)
		ensure -- from WEL_WINDOW
			new_object: Result /= Void implies Result /= background_brush

	captured_window: WEL_WINDOW
			-- Current window which has been captured.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			window_captured: window_captured

	caret_index: INTEGER_32
			-- Index of the item that has the focus
		require
			exists: exists

	client_rect: WEL_RECT
			-- Client rectangle
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			result_not_void: Result /= Void

	command (message: INTEGER_32): WEL_COMMAND
			-- Command associated to `message'
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			positive_message: message >= 0
			command_exists: command_exists (message)
		ensure -- from WEL_WINDOW
			result_not_void: Result /= Void

	command_argument (message: INTEGER_32): ANY
			-- Command argument associated to `message'
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			positive_message: message >= 0
			command_exists: command_exists (message)

	command_exists (message: INTEGER_32): BOOLEAN
			-- Does a command associated to `message' exist?
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			positive_message: message >= 0

	commands_enabled: BOOLEAN
			-- Is the commands execution enabled?
			-- (from WEL_WINDOW)

	conforms_to (other: ANY): BOOLEAN
			-- Does type of current object conform to type
			-- of `other' (as per Eiffel: The Language, chapter 13)?
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void

	count_selected_items: INTEGER_32
			-- Number of items selected
		require
			exits: exists
		ensure
			result_large_enough: Result >= 0
			result_small_enough: Result <= count

	enabled: BOOLEAN
			-- Is the window enabled for mouse and keyboard input?
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	ex_style: INTEGER_32
			-- Window ex_style
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	exists: BOOLEAN
			-- Does the item exist?
			-- (from WEL_ANY)
		require -- from  WEL_COLOR_CONTROL
			True
		ensure -- from WEL_ANY
			Result = (item /= default_pointer)

	focused_window: WEL_WINDOW
			-- Current window which has the focus.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	has_capture: BOOLEAN
			-- Does this window have the capture?
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	has_focus: BOOLEAN
			-- Does this window have the focus?
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	has_heavy_capture: BOOLEAN
			-- Does this window have the heavy capture?
			-- (from WEL_WINDOW)

	has_horizontal_scroll_bar: BOOLEAN
			-- Does this window have a horizontal scroll bar?
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	has_system_font: BOOLEAN
			-- Does the control use the system font?
			-- (from WEL_CONTROL)
		require -- from WEL_CONTROL
			exists: exists

	has_vertical_scroll_bar: BOOLEAN
			-- Does this window have a vertical scroll bar?
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	heavy_capture_activated: BOOLEAN
			-- Is the heavy capture currently running?
			-- (i.e. is there a window in the current program
			-- with has_heavy_capture to True?)
			-- (from WEL_WINDOW)

	height: INTEGER_32
			-- Window height
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	horizontal_extent: INTEGER_32
			-- Width, in pixels, by which the list box can be
			-- scrolled horizontally
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists
			has_horizontal_scroll_bar: has_horizontal_scroll_bar
		ensure -- from WEL_LIST_BOX
			positive_result: Result >= 0

	is_inside: BOOLEAN
			-- Is the current window inside another window?
			-- (from WEL_WINDOW)

	is_selected (index: INTEGER_32): BOOLEAN
			-- Is item at position `index' selected?
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists
			index_large_enough: index >= 0
			index_small_enough: index < count

	item_height: INTEGER_32
			-- Height of an item
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists
		ensure -- from WEL_LIST_BOX
			positive_result: Result >= 0

	maximal_height: INTEGER_32
			-- Maximal height allowed for the window
			-- (from WEL_WINDOW)
		ensure -- from WEL_WINDOW
			result_large_enough: Result >= minimal_height

	maximal_width: INTEGER_32
			-- Maximal width allowed for the window
			-- (from WEL_WINDOW)
		ensure -- from WEL_WINDOW
			result_large_enough: Result >= minimal_width

	maximized: BOOLEAN
			-- Is the window maximized?
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	minimal_height: INTEGER_32
			-- Minimal height allowed for the window
			-- Zero by default.
			-- (from WEL_WINDOW)
		ensure -- from WEL_WINDOW
			positive_result: Result >= 0
			result_small_enough: Result <= maximal_height

	minimal_width: INTEGER_32
			-- Minimal width allowed for the window
			-- Zero by default.
			-- (from WEL_WINDOW)
		ensure -- from WEL_WINDOW
			positive_result: Result >= 0
			result_small_enough: Result <= maximal_width

	minimized: BOOLEAN
			-- Is the window minimized?
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	placement: WEL_WINDOW_PLACEMENT
			-- Window placement information
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			result_not_void: Result /= Void

	same_type (other: ANY): BOOLEAN
			-- Is type of current object identical to type of `other'?
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void
		ensure -- from ANY
			definition: Result = (conforms_to (other) and other.conforms_to (Current))

	selected: BOOLEAN
			-- Is at least one item selected?
		require -- from WEL_LIST_BOX
			exists: exists

	selected_items: ARRAY [INTEGER_32]
			-- Contains all the selected index
			-- The Result is an array beginning at index 0.
		require
			exits: exists
		ensure
			result_not_void: Result /= Void
			count_ok: Result.count = count_selected_items

	selected_strings: ARRAY [STRING_32]
			-- Contains all the selected strings
		require
			exits: exists
		ensure
			result_not_void: Result /= Void
			count_ok: Result.count = count_selected_items

	shared: BOOLEAN
			-- Is item shared by another object?
			-- If False (by default), item will
			-- be destroyed by destroy_item.
			-- If True, item will not be destroyed.
			-- (from WEL_ANY)

	shown: BOOLEAN
			-- Is the window shown?
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	style: INTEGER_32
			-- Window style
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	text: STRING_32
			-- Window text
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			result_not_void: Result /= Void

	text_length: INTEGER_32
			-- Text length
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			positive_result: Result >= 0

	top_index: INTEGER_32
			-- Index of the first visible item
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists
		ensure -- from WEL_LIST_BOX
			result_large_enough: Result >= 0
			result_small_enough: Result <= count

	valid_color_constant (c: INTEGER_32): BOOLEAN
			-- Is `c' a valid color constant?
			-- (from WEL_COLOR_CONSTANTS)

	width: INTEGER_32
			-- Window width
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	window_captured: BOOLEAN
			-- Has a window been captured?
			-- (from WEL_WINDOW)

	window_rect: WEL_RECT
			-- Window rectangle (absolute position)
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			result_not_void: Result /= Void

	x: INTEGER_32
			-- Window x position
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			parent = Void implies Result = absolute_x

	y: INTEGER_32
			-- Window y position
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			parent = Void implies Result = absolute_y
	
feature {ANY} -- Status report

	valid_hwnd_constant (c: POINTER): BOOLEAN
			-- Is `c' a valid hwnd constant?
			-- (from WEL_HWND_CONSTANTS)
	
feature -- Status setting

	disable
			-- Disable mouse and keyboard input
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			disabled: not enabled

	disable_commands
			-- Disable commands execution.
			-- (from WEL_WINDOW)
		ensure -- from WEL_WINDOW
			commands_disabled: not commands_enabled

	disable_default_processing
			-- Disable default window processing.
			-- The standard window procedure will not be called for
			-- each messages received by the window and then the
			-- normal behavior will not occur.
			-- (from WEL_WINDOW)
		ensure -- from WEL_WINDOW
			default_processing_disabled: not default_processing

	disable_drag_accept_files
			-- Disallow `Current' from being a file drag and drop target.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists

	enable
			-- Enable mouse and keyboard input.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			enabled: enabled

	enable_commands
			-- Enable commands execution.
			-- (from WEL_WINDOW)
		ensure -- from WEL_WINDOW
			commands_enabled: commands_enabled

	enable_default_processing
			-- Enable default window processing.
			-- The standard window procedure will be called for
			-- each messages received by the window and then the
			-- normal behavior will occur.
			-- (from WEL_WINDOW)
		ensure -- from WEL_WINDOW
			default_processing_enabled: default_processing

	enable_drag_accept_files
			-- Allow `Current' to be a file drag and drop target.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists

	hide
			-- Hide the window
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			hidden: not shown

	maximize
			-- Maximize the window
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			maximized: maximized

	minimize
			-- Minimize the window and display its icon
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			minimized: minimized

	release_capture
			-- Release the mouse capture after a call
			-- to set_capture.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			has_capture: has_capture
		ensure -- from WEL_WINDOW
			not_has_capture: not has_capture

	release_heavy_capture
			-- Release the mouse capture after a call
			-- to set_heavy_capture.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			has_heavy_capture: has_heavy_capture
			heavy_capture_activated: heavy_capture_activated
		ensure -- from WEL_WINDOW
			heavy_capture_set: not has_heavy_capture
			heavy_capture_deactivated: not heavy_capture_activated

	restore
			-- Restore the window to its
			-- original size and position after
			-- minimize or maximize
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	select_all
			-- Select all items.
		require
			exists: exists
		ensure
			all_selected: count_selected_items = count

	select_item (index: INTEGER_32)
			-- Select item at the zero-based `index'.
		require -- from WEL_LIST_BOX
			exists: exists
			index_small_enough: index < count
			index_large_enough: index >= 0
		ensure -- from WEL_LIST_BOX
			is_selected: is_selected (index)

	select_items (start_index, end_index: INTEGER_32)
			-- Select items between `start_index'
			-- and `end_index' (zero-based index).
		require
			exists: exists
			valid_range: end_index >= start_index
			start_index_small_enough: start_index < count
			start_index_large_enough: start_index >= 0
			end_index_small_enough: end_index < count
			end_index_large_enough: end_index >= 0
			valid_range: end_index >= start_index
		ensure
			selected: selected

	set_capture
			-- Set the mouse capture to the `Current' window.
			-- Once the window has captured the mouse, all
			-- mouse input is directed to this window, regardless
			-- of whether the cursor is over that window. Only
			-- one window can have the mouse capture at a time.
			--
			-- Works only for windows in the same thread as your
			-- application.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			has_not_capture: not has_capture
			has_not_heavy_capture: not has_heavy_capture
		ensure -- from WEL_WINDOW
			has_capture: has_capture

	set_caret_index (index: INTEGER_32; scrolling: BOOLEAN)
			-- Set the focus rectangle to the item at the
			-- specified zero-based `index'. If `scrolling' is
			-- True the item is scrolled until it is at least
			-- partially visible, otherwise the item is scrolled
			-- until it is fully visible.
		require
			exists: exists
			index_small_enough: index < count
			index_large_enough: index >= 0
		ensure
			caret_index_set: caret_index = index

	set_ex_style (an_ex_style: INTEGER_32)
			-- Set `an_ex_style' with ex_style.
			--
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	set_focus
			-- Set the focus to `Current'
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	set_heavy_capture
			-- Set the mouse capture to the `Current' window.
			-- Once the window has captured the mouse, all
			-- mouse input is directed to this window, regardless
			-- of whether the cursor is over that window. Only
			-- one window can have the mouse capture at a time.
			--
			-- Works for ALL windows.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			has_not_heavy_capture: not has_heavy_capture
			heavy_capture_deactivated: not heavy_capture_activated
		ensure -- from WEL_WINDOW
			heavy_capture_set: has_heavy_capture implies heavy_capture_activated

	set_horizontal_extent (a_width: INTEGER_32)
			-- Set the width, in pixels, by which a list box can
			-- be scrolled horizontally.
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists
			positive_width: width >= 0
		ensure -- from WEL_LIST_BOX
			horizontal_extent_set: horizontal_extent = a_width

	set_shared
			-- Set shared to True.
			-- (from WEL_ANY)
		ensure -- from WEL_ANY
			shared: shared

	set_style (a_style: INTEGER_32)
			-- Set style with `a_style'.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	set_top_index (index: INTEGER_32)
			-- Ensure that the zero-based `index'
			-- in the list box is visible.
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists
			index_large_enough: index >= 0
			index_small_enough: index < count
		ensure -- from WEL_LIST_BOX
			index_visible: top_index <= index

	set_unshared
			-- Set shared to False.
			-- (from WEL_ANY)
		ensure -- from WEL_ANY
			unshared: not shared

	show
			-- Show the window
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	unselect_all
			-- Unselect all the selected items.
		require
			exists: exists
		ensure
			all_unselected: count_selected_items = 0

	unselect_item (index: INTEGER_32)
			-- Unselect item at the zero-based `index'.
		require
			exists: exists
			index_small_enough: index < count
			index_large_enough: index >= 0
		ensure
			is_not_selected: not is_selected (index)

	unselect_items (start_index, end_index: INTEGER_32)
			-- Unselect items between `start_index'
			-- and `end_index' (zero-based index).
		require
			exists: exists
			valid_range: end_index >= start_index
			start_index_small_enough: start_index < count
			start_index_large_enough: start_index >= 0
			end_index_small_enough: end_index < count
			end_index_large_enough: end_index >= 0
			valid_range: end_index >= start_index
		ensure
			no_item_selected: not selected

	update_cached_style (new_ex_style, old_ex_style: INTEGER_32)
			-- Update Window cache buffer for Window style.
			-- (from WEL_WINDOW)
	
feature -- Element change

	add_files (attribut: INTEGER_32; files: STRING_GENERAL)
			-- Add `files' to the list box. `files' may contain
			-- wildcards (?*). See class WEL_DDL_CONSTANTS for
			-- `attribut' values.
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists
			files_not_void: files /= Void

	add_string (a_string: STRING_GENERAL)
			-- Add `a_string' in the list box.
			-- If the list box does not have the
			-- Lbs_sort style, `a_string' is added
			-- to the end of the list otherwise it is
			-- inserted into the list and the list is
			-- sorted.
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists
			a_string_not_void: a_string /= Void
		ensure -- from WEL_LIST_BOX
			count_increased: count = old count + 1

	delete_string (index: INTEGER_32)
			-- Delete the item at the zero-based `index'
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists
			index_large_enough: index >= 0
			index_small_enough: index < count
		ensure -- from WEL_LIST_BOX
			count_decreased: count = old count - 1

	disable_redraw
			-- Disable redrawing of `Current' until next call to enable_redraw.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	enable_redraw
			-- Ensure `Current' is redrawn as required.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	has_system_window_locked: BOOLEAN
			-- Is there any window locked ?
			-- (from WEL_WINDOW)

	insert_string_at (a_string: STRING_GENERAL; index: INTEGER_32)
			-- Add `a_string' at the zero-based `index'
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists
			a_string_not_void: a_string /= Void
			index_large_enough: index >= 0
			index_small_enough: index <= count
		ensure -- from WEL_LIST_BOX
			count_increased: count = old count + 1

	lock_window_update
			-- Disables drawing in the current window. A locked window cannot be moved.
			-- Only one window can be locked at a time. To unlock a window locked with
			-- lock_window_update , call 'unlock_window_update'.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			has_system_window_locked

	reset_content
			-- Reset the content of the list.
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists
		ensure -- from WEL_LIST_BOX
			empty: count = 0

	set_font (a_font: WEL_FONT)
			-- Set font with `a_font'.
			-- (from WEL_CONTROL)
		require -- from WEL_CONTROL
			exists: exists
			a_font_not_void: a_font /= Void
			a_font_exists: a_font.exists
		ensure -- from WEL_CONTROL
			font_set: not has_system_font implies font.item = a_font.item

	set_height (a_height: INTEGER_32)
			-- Set height with `a_height'
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	set_item (an_item: POINTER)
			-- Set item with `an_item'
			-- (from WEL_ANY)
		ensure -- from WEL_ANY
			item_set: item = an_item

	set_parent (a_parent: WEL_WINDOW)
			-- Change the parent of the current window.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	set_placement (a_placement: WEL_WINDOW_PLACEMENT)
			-- Set placement with `a_placement'
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			a_placement_not_void: a_placement /= Void

	set_text (a_text: STRING_GENERAL)
			-- Set the window text
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			text_set_when_not_void: a_text /= Void implies text.is_equal (a_text)
			text_set_when_void: a_text = Void implies text.count = 0

	set_timer (timer_id, time_out: INTEGER_32)
			-- Set a timer identified by `timer_id' with a
			-- `time_out' value (in milliseconds).
			-- See also on_timer, kill_timer.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			positive_timer_id: timer_id > 0
			positive_time_out: time_out > 0

	set_width (a_width: INTEGER_32)
			-- Set width with `a_width'
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	set_x (a_x: INTEGER_32)
			-- Set x with `a_x'
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	set_y (a_y: INTEGER_32)
			-- Set y with `a_y'
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	unlock_window_update
			-- Unlock a locked window.	
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
	
feature -- Removal

	destroy
			-- Destroy the window.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
		ensure -- from WEL_WINDOW
			not_exists: not exists
	
feature -- Duplication

	copy (other: like Current)
			-- Update current object using fields of object attached
			-- to `other', so as to yield equal objects.
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void
			type_identity: same_type (other)
		ensure -- from ANY
			is_equal: is_equal (other)

	frozen deep_copy (other: like Current)
			-- Effect equivalent to that of:
			--		copy (`other' . deep_twin)
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void
		ensure -- from ANY
			deep_equal: deep_equal (Current, other)

	frozen deep_twin: like Current
			-- New object structure recursively duplicated from Current.
			-- (from ANY)
		ensure -- from ANY
			deep_equal: deep_equal (Current, Result)

	frozen standard_copy (other: like Current)
			-- Copy every field of `other' onto corresponding field
			-- of current object.
			-- (from ANY)
		require -- from ANY
			other_not_void: other /= Void
			type_identity: same_type (other)
		ensure -- from ANY
			is_standard_equal: standard_is_equal (other)

	frozen standard_twin: like Current
			-- New object field-by-field identical to `other'.
			-- Always uses default copying semantics.
			-- (from ANY)
		ensure -- from ANY
			standard_twin_not_void: Result /= Void
			equal: standard_equal (Result, Current)

	frozen twin: like Current
			-- New object equal to `Current'
			-- twin calls copy; to change copying/twining semantics, redefine copy.
			-- (from ANY)
		ensure -- from ANY
			twin_not_void: Result /= Void
			is_equal: Result.is_equal (Current)
	
feature -- Basic operations

	bring_to_top
			-- Bring this window to the top of the Z order.
			--
			-- Note:
			--  * If the window is a top-level window, it is activated.
			--  * If the window is a child window, the top-level parent window
			--    associated with the child window is activated.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	frozen default: like Current
			-- Default value of object's type
			-- (from ANY)

	frozen default_pointer: POINTER
			-- Default value of type `POINTER'
			-- (Avoid the need to write `p'.default for
			-- some `p' of type `POINTER'.)
			-- (from ANY)

	default_process_notification (notification_code: INTEGER_32)
			-- Process a `notification_code' which has not been
			-- processed by process_notification.
			-- (from WEL_CONTROL)
		require -- from WEL_CONTROL
			exists: exists

	default_rescue
			-- Process exception for routines with no Rescue clause.
			-- (Default: do nothing.)
			-- (from ANY)

	disable_horizontal_scroll_bar
			-- Disable the horizontal scroll bar.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	disable_vertical_scroll_bar
			-- Disable the vertical scroll bar.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	frozen do_nothing
			-- Execute a null action.
			-- (from ANY)

	enable_horizontal_scroll_bar
			-- Enable the horizontal scroll bar.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	enable_vertical_scroll_bar
			-- Enable the vertical scroll bar.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	find_string (index: INTEGER_32; a_string: STRING_GENERAL): INTEGER_32
			-- Find the first string that contains the
			-- prefix `a_string'. `index' specifies the
			-- zero-based index of the item before the first
			-- item to be searched.
			-- if `index' = -1 then the search begins on the first item.
			-- Returns -1 if the search was unsuccessful.
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists
			index_large_enough: index >= -1
			index_small_enough: index < count
			a_string_not_void: a_string /= Void

	find_string_exact (index: INTEGER_32; a_string: STRING_GENERAL): INTEGER_32
			-- Find the first string that matches `a_string'.
			-- `index' specifies the zero-based index of the
			-- item before the first item to be searched.
			-- if `index' = -1 then the search begins on the first item.
			-- Returns -1 if the search was unsuccessful.
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists
			index_large_enough: index >= -1
			index_small_enough: index < count
			a_string_not_void: a_string /= Void

	go_to_next_group_item (a_parent: WEL_COMPOSITE_WINDOW; after: BOOLEAN)
			-- Find the previous or following control with the
			-- Wm_tabstop style in the current group in `a_parent'
			-- depending on the value of `after'.
			-- (from WEL_CONTROL)
		require -- from WEL_CONTROL
			valid_parent: a_parent /= Void and then a_parent.exists

	go_to_next_tab_item (a_parent: WEL_COMPOSITE_WINDOW; after: BOOLEAN)
			-- Find the previous or following control with the
			-- Wm_tabstop style in `a_parent depending on the
			-- value of `after'.
			-- (from WEL_CONTROL)
		require -- from WEL_CONTROL
			valid_parent: a_parent /= Void and then a_parent.exists

	hide_horizontal_scroll_bar
			-- Hide the horizontal scroll bar.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	hide_scroll_bars
			-- Hide the horizontal and vertical scroll bars.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	hide_vertical_scroll_bar
			-- Hide the vertical scroll bar.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	insert_after (a_window: WEL_WINDOW)
			-- Insert the current window after `a_window'.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			a_window_not_void: a_window /= Void
			a_window_not_current: a_window /= Current
			a_window_exists: a_window.exists

	invalidate
			-- Invalide the entire client area of the window. The
			-- background will be erased before.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	invalidate_rect (rect: WEL_RECT; erase_background: BOOLEAN)
			-- Invalidate the area `rect' and erase
			-- the background if `erase_background' is True.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			rect_not_void: rect /= Void

	invalidate_region (region: WEL_REGION; erase_background: BOOLEAN)
			-- Invalidate the area `region' and erase
			-- the background if `erase_background' is True.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			region_not_void: region /= Void
			region_exists: region.exists

	invalidate_without_background
			-- Invalidate the entire client area of the window. The
			-- background will not be erased.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	kill_timer (timer_id: INTEGER_32)
			-- Kill the timer identified by `timer_id'.
			-- See also set_timer, on_timer.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			positive_timer_id: timer_id > 0

	move (a_x, a_y: INTEGER_32)
			-- Move the window to `a_x', `a_y'.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	move_and_resize (a_x, a_y, a_width, a_height: INTEGER_32; repaint: BOOLEAN)
			-- Move the window to `a_x', `a_y' position and
			-- resize it with `a_width', `a_height'.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	put_command (a_command: WEL_COMMAND; message: INTEGER_32; argument: ANY)
			-- Put `a_command' associated to `message'.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			a_command_not_void: a_command /= Void
			positive_message: message >= 0
		ensure -- from WEL_WINDOW
			command_added: command (message) = a_command and command_argument (message) = argument

	remove_command (message: INTEGER_32)
			-- Remove the command associated to `message'.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			positive_message: message >= 0
			command_exists: command_exists (message)
		ensure -- from WEL_WINDOW
			command_removed: not command_exists (message)

	resize (a_width, a_height: INTEGER_32)
			-- Resize the window with `a_width', `a_height'.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	scroll (a_x, a_y: INTEGER_32)
			-- Scroll the contents of the window's client area.
			-- `a_x' and `a_y' specify the amount of horizontal
			-- and vertical scrolling.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	set_class_icon (new_icon: WEL_ICON)
			-- Replace the current icon for the class which this window
			-- belongs to.
			--
			-- The SetClassLong function replaces the specified 32-bit (long)
			-- value at the specified offset into the extra class memory
			-- or the WNDCLASSEX structure for the class to which the
			-- specified window belongs.
			-- (from WEL_WINDOW)

	set_class_small_icon (new_icon: WEL_ICON)
			-- Replace the current icon for the class which this window
			-- belongs to.
			--
			-- The SetClassLong function replaces the specified 32-bit (long)
			-- value at the specified offset into the extra class memory
			-- or the WNDCLASSEX structure for the class to which the
			-- specified window belongs.
			-- (from WEL_WINDOW)

	set_z_order (z_order: POINTER)
			-- Set the z-order of the window.
			-- See class WEL_HWND_CONSTANTS for `z_order' values.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			valid_hwnd_constant: valid_hwnd_constant (z_order)

	show_horizontal_scroll_bar
			-- Show the horizontal scroll bar.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	show_scroll_bars
			-- Show the horizontal and vertical scroll bars.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	show_vertical_scroll_bar
			-- Show the vertical scroll bar.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	show_with_option (cmd_show: INTEGER_32)
			-- Set the window's visibility with `cmd_show'.
			-- See class WEL_SW_CONSTANTS for `cmd_show' value.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			parent_shown: parent /= Void implies parent.exists and parent.shown

	update
			-- Update the client area by sending a Wm_paint message.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	validate
			-- Validate the entire client area of the window.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists

	validate_rect (rect: WEL_RECT)
			-- Validate the area `rect'.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			rect_not_void: rect /= Void

	validate_region (region: WEL_REGION)
			-- Validate the area `region'.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			region_not_void: region /= Void
			region_exists: region.exists

	win_help (help_file: STRING_GENERAL; a_command, data: INTEGER_32)
			-- Start the Windows Help program with `help_file'.
			-- `a_command' specifies the type of help requested. See
			-- class WEL_HELP_CONSTANTS for `a_command' values.
			-- 'data' is depandant on 'a_command'.  Check MSDN for more details.
			-- (from WEL_WINDOW)
		require -- from WEL_WINDOW
			exists: exists
			help_file_not_void: help_file /= Void
	
feature -- Element Change

	set_default_processing (value: BOOLEAN)
			-- Enable or disable default processing of window messages.
			-- (from WEL_RETURN_VALUE)
		ensure -- from WEL_RETURN_VALUE
			value_set: default_processing = value

	set_message_return_value (value: POINTER)
			-- Set the window-procedure-return-value.
			-- (from WEL_RETURN_VALUE)
		ensure -- from WEL_RETURN_VALUE
			has_return_value: has_return_value
			value_set: message_return_value = value
	
feature -- Notifications

	on_lbn_dblclk
			-- Double click on a string
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists

	on_lbn_errspace
			-- Cannot allocate enough memory
			-- to meet a specific request
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists

	on_lbn_killfocus
			-- Lose the keyboard focus
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists

	on_lbn_selcancel
			-- Cancel the selection
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists

	on_lbn_selchange
			-- The selection is about to change
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists

	on_lbn_setfocus
			-- Receive the keyboard focus
			-- (from WEL_LIST_BOX)
		require -- from WEL_LIST_BOX
			exists: exists
	
feature -- Output

	io: STD_FILES
			-- Handle to standard file setup
			-- (from ANY)

	out: STRING_8
			-- New string containing terse printable representation
			-- of current object
			-- Was declared in ANY as synonym of tagged_out.
			-- (from ANY)

	print (some: ANY)
			-- Write terse external representation of `some'
			-- on standard output.
			-- (from ANY)

	frozen tagged_out: STRING_8
			-- New string containing terse printable representation
			-- of current object
			-- Was declared in ANY as synonym of out.
			-- (from ANY)
	
feature -- Platform

	operating_environment: OPERATING_ENVIRONMENT
			-- Objects available from the operating system
			-- (from ANY)
	
feature -- Registration

	is_registered: BOOLEAN
			-- Is `window' registered?
			-- (from WEL_WINDOW)

	frozen register_current_window
			-- Register `Current' in window manager.
			-- (from WEL_WINDOW)
		ensure -- from WEL_WINDOW
			registered: is_registered
	
invariant
	valid_count: exists implies selected_items.count = count_selected_items

		-- from WEL_LIST_BOX
	consistent_count: exists and then selected implies count > 0

		-- from ANY
	reflexive_equality: standard_is_equal (Current)
	reflexive_conformance: conforms_to (Current)

indexing
	copyright: "Copyright (c) 1984-2006, Eiffel Software and others"
	license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
	source: "[
		Eiffel Software
		356 Storke Road, Goleta, CA 93117 USA
		Telephone 805-685-1006, Fax 805-685-6869
		Website http://www.eiffel.com
		Customer support http://support.eiffel.com
	]"

end -- class WEL_MULTIPLE_SELECTION_LIST_BOX