/*===========================================================================
 *
 * GENWIN.H - 4 March 1999, Dave Humphrey
 *
 *=========================================================================*/
#ifndef __GENWIN_H
#define __GENWIN_H

	/* Required Includes */
#include "genutil.h"
#include <stdarg.h>


/*===========================================================================
 *
 * Begin Defines
 *
 *=========================================================================*/

	/* Maximum length for a message string for the GenMsgBox function */
  #define MAX_GENMSG_LENGTH 1024
	
	/* Shortcuts for message box options */
  #define MBOK_INFO     (MB_OK|MB_ICONINFORMATION)
  #define MBOK_QUESTION (MB_OK|MB_ICONQUESTION)
  #define MBOK_WARNING  (MB_OK|MB_ICONEXCLAMATION)
  #define MBOK_ERROR    (MB_OK|MB_ICONSTOP)

	/* Determines if an object is a window and is visible */
  #define ISWINDOWVISIBLE(obj) ((IsWindow(obj.m_hWnd) && obj.IsWindowVisible()) ? TRUE : FALSE)
  #define ISWINDOWPTRVISIBLE(obj) ((IsWindow(obj->m_hWnd) && obj->IsWindowVisible()) ? TRUE : FALSE)

/*===========================================================================
 *		End of Defines
 *=========================================================================*/


/*===========================================================================
 *
 * Begin Function Prototypes
 *
 *=========================================================================*/

	/* Improved message box interface acting like printf() */
  int GenMsgBox (const UINT Type, const char *pTitle, const char *pString, ...);

/*===========================================================================
 *		End of Function Prototypes
 *=========================================================================*/

#endif
/*===========================================================================
 *		End of File GENWIN.H
 *=========================================================================*/