#if !defined(__alffmsgs_h) // Sentry, use file only if it's not already included.
#define __alffmsgs_h
/*  Project Biblio-Tec

	 SUBSYSTEM:    TEC30r.dll Library (TecLib)
	 FILE:         alffmsgs.h
	 AUTHOR:       Alcindo Ferreira Filho

	 OVERVIEW:
	 ALFFMsgs Class definition, used for Loading StringTables
    and handling Message Boxes.

    COPYRIGHT:    © 1998,2005
                  Alcindo Ferreira Filho
                  <alcindo@inttec.com.br>

    LICENSE:      Biblio-Tec license (BiblTec.txt)
*/
#include "alffobj.h"
#include <owl\owlall.h>

//{{ALFFMsgs}}
/*
 * ALFFMsgs Return Codes
 */
#define STRINGNOTFOUND  -10

/* ALFFMsgs Stringtable Messages Controls */
#define STRINGMSGLEN					 128
#define TITLELEN		             64

class _TECLIBCLASS ALFFMsgs : public ALFFObject
{
	public:
	 ALFFMsgs(TWindow* pParent);

	 virtual ~ALFFMsgs();
    char far* GetClassName() {return "ALFFMsgs";}

	 /* Get String Messages From StringTable Resource  ......  */
	 int	LoadString(const int id,char* destString,const int destLen);

	 /* Show Message Box with Message from StringTable  .....  */
	 int  Message(const int errorId, const int titleId,bool cancel=false);

	 /* Show Message Box with One Line String concatenated with
	  * Message from StringTable  .....  */
	 int StrMessage(const char* string, const int errorId, const int titleId,bool cancel=false);

	 /* Show Message Box with One Line String concatenated with
	  * Message from StringTable, with TWindow* parent and TASK_MODAL */
	 int StrMessageModal(TWindow* parent, const char* string, const int errorId, const int titleId,bool cancel=false);

  protected:
	 TWindow* msgParent;

 };
//{{ALFFMsgs}}
#endif

