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

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

	 OVERVIEW:
	 ALFFHelp Class definition, the class for being used
    where any help is called for activating Microsoft's HTMLHelp
    API or any other kind of Help. It hides the Help API that is
    being used.

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

    LICENSE:      Biblio-Tec license (BiblTec.txt)
*/

#include <owl/owlall.h>

#include "alffobj.h"
#include <htmlhelp.h>


typedef HWND WINAPI (*HtmlHelpFunc)( HWND hwndCaller, LPCSTR pszFile,
                                     UINT uCommand, DWORD dwData );
class _TECLIBCLASS ALFFHelp : public ALFFObject
{
 public:
  ALFFHelp(TWindow* parent, const char* helpFileName);
  ~ALFFHelp();
  virtual char far* GetClassName() {return "ALFFHelp";}

  HWND  ShowHelp(UINT uCommand, DWORD_PTR dwData, const char* windowName = NULL);

 protected:
  HINSTANCE hHelpOCX;
  HtmlHelpFunc HTMLHelp;
  char*    HelpFileName;
  TWindow* helpParent;
};


#endif


