window_menu_button_c

	did_it.i4.v = window_menu_button_c(window_id.i2.v,
					   function_mask.i4.v,
					   close_func.f.v,
					   close_func_data.g.v,
					   move_func.f.v,
					   move_func_data.g.v,
					   resize_func.f.v,
					   resize_func_data.g.v,
					   lower_func.f.v,
					   lower_func_data.g.v)
					   help_func.f.v,
					   help_func_data.g.v,
					   mail_func.f.v,
					   mail_func_data.g.v)

	This routine will create a window menu button in the
	upper left hand corner of the requested window.  This button
	will support a menu for executing window control functions
	such as closing, moving, or resizing the window as well as
	for providing services such as help and mail.

	window_id	window ID
	function_mask	mask indicating which window functions are desired
			(WMNGR_CNTRL_CLOSE -> close the window,
			 WMNGR_CNTRL_MOVE -> move the window,
			 WMNGR_CNTRL_RESIZE -> resize the window,
			 WMNGR_CNTRL_LOWER -> lower the window,
			 WMNGR_CNTRL_HELP -> provide help for the window,
			 WMNGR_CNTRL_MAIL -> mail the window contents)
			(Note: These values can be logically ORed together.)
	close_func	user-supplied function for handling the closing
			of the window called as follows:
			close_func(window_id.i2.v, callback_data.g.v)
			(If a value of NULL is passed for this argument,
			 a default function will be called.)
	close_func_data	pointer to user-supplied data to be passed to
			close function
	move_func	user-supplied function for handling the moving
			of the window called as follows:
			move_func(window_id.i2.v, callback_data.g.v)
			(If a value of NULL is passed for this argument,
			 a default function will be called.)
	move_func_data	pointer to user-supplied data to be passed to
			move function
	resize_func	user-supplied function for handling the resizing
			of the window called as follows:
			resize_func(window_id.i2.v, callback_data.g.v)
			(If a value of NULL is passed for this argument,
			 a default function will be called.)
	resize_func_data pointer to user-supplied data to be passed to
			 resize function
	lower_func	user-supplied function for handling the lowering
			of the window called as follows:
			lower_func(window_id.i2.v, callback_data.g.v)
			(If a value of NULL is passed for this argument,
			 a default function will be called.)
	lower_func_data	pointer to user-supplied data to be passed to
			lower function
	help_func	user-supplied function for providing help for
			the window called as follows:
			help_func(window_id.i2.v, callback_data.g.v)
	help_func_data	pointer to user-supplied data to be passed to
			help function
	mail_func	user-supplied function for mailing the contents of
			the window called as follows:
			mail_func(window_id.i2.v, callback_data.g.v)
			(If a value of NULL is passed for this argument,
			 a default function will be called.)
	mail_func_data	pointer to user-supplied data to be passed to
			mail function

	This function returns ACNET status values as follows:

	OK			success
	CBS_INVARG		background or invalid window ID passed
	CBS_NO_WINDOW		requested window does not exist
	CBS_INVTYP		requested window has no border
	CBS_INVSIZ		button field extends beyond the end of the
				window
	CBS_NOTENB		action not enabled due to active window
				move or resize

	This function requires the following include files:

	cnsparam_h, cbslib_h, acnet_errors_h

	Related functions:

	window_close_button_c, window_border_button_c,
	window_delete_border_button_c, window_delete_c,
	window_move, window_resize, intro_tv_windows

	C/C++ usage:

	short	window_id = WINDOW_ID;
	int	status;
	unsigned int	function_mask = WMNGR_CNTRL_CLOSE | WMNGR_CNTRL_MOVE;
	void	close_func(short window_id, void *callback_data);
	void	*close_func_data = (void *) NULL;
	void_function	move_func = (void_function) NULL;
	void	*move_func_data = (void *) NULL;
	void_function	resize_func = (void_function) NULL;
	void	*resize_func_data = (void *) NULL;
	void_function	lower_func = (void_function) NULL;
	void	*lower_func_data = (void *) NULL;
	void_function	help_func = (void_function) NULL;
	void	*help_func_data = (void *) NULL;
	void_function	mail_func = (void_function) NULL;
	void	*mail_func_data = (void *) NULL;

	status = window_menu_button_c(window_id,function_mask,close_func,
				      close_func_data,move_func,
				      move_func_data,resize_func,
				      resize_func_data,lower_func,
				      lower_func_data,help_func,
				      help_func_data,mail_func,
				      mail_func_data);