indexing
	description: "Information about message Wm_menuselect which is sent to a menu's owner window when the user highlights a menu item."
	status: "See notice at end of class."
	date: "$Date$"
	revision: "$Revision$"

class interface
	WEL_MENU_SELECT_MESSAGE

create 

	make (a_window: WEL_WINDOW; a_message, a_w_param, a_l_param: INTEGER)
			-- Set window, message, w_param, l_param with
			-- a_window, a_message, a_w_param, a_l_param
			-- (from WEL_MESSAGE_INFORMATION)
		ensure -- from WEL_MESSAGE_INFORMATION
			window_set: window = a_window
			message_set: message = a_message
			w_param_set: w_param = a_w_param
			l_param_set: l_param = a_l_param

feature -- Initialization

	make (a_window: WEL_WINDOW; a_message, a_w_param, a_l_param: INTEGER)
			-- Set window, message, w_param, l_param with
			-- a_window, a_message, a_w_param, a_l_param
			-- (from WEL_MESSAGE_INFORMATION)
		ensure -- from WEL_MESSAGE_INFORMATION
			window_set: window = a_window
			message_set: message = a_message
			w_param_set: w_param = a_w_param
			l_param_set: l_param = a_l_param
	
feature -- Access

	flags: INTEGER
			-- Menu flags

	h_menu: POINTER
			-- Handle of menu clicked

	item: INTEGER
			-- Menu item

	l_param: INTEGER
			-- Additional information about message. The exact
			-- meaning depends on the value of message.
			-- (from WEL_MESSAGE_INFORMATION)

	menu: WEL_MENU
			-- Menu clicked
		require
			menu_exists: menu_exists

	message: INTEGER
			-- Message number. See class WEL_WM_CONSTANTS for
			-- different values.
			-- (from WEL_MESSAGE_INFORMATION)

	w_param: INTEGER
			-- Additional information about message. The exact
			-- meaning depends on the value of message.
			-- (from WEL_MESSAGE_INFORMATION)

	window: WEL_WINDOW
			-- Window which receives message
			-- (from WEL_MESSAGE_INFORMATION)
	
feature -- Status report

	checked: BOOLEAN
			-- Is the item checked?

	disabled: BOOLEAN
			-- Is the item disabled?

	grayed: BOOLEAN
			-- Is the item grayed?

	highlighted: BOOLEAN
			-- Is the item highlighted?

	is_bitmap: BOOLEAN
			-- Is the item a bitmap?

	is_popup: BOOLEAN
			-- Is the item a popup menu?

	is_system_menu: BOOLEAN
			-- Is the item contained in the system menu?

	menu_exists: BOOLEAN
			-- Does the menu exist?

	mouse_selected: BOOLEAN
			-- Is the item selected with the mouse?

	owner_drawn: BOOLEAN
			-- Is the item owner-drawn?
	
invariant

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

end -- class WEL_MENU_SELECT_MESSAGE