OWLNext 6.32
Classes | Defines | Typedefs | Functions | Variables
D:/Work/OWLNext/Subversion/branches/632/include/owl/hlpmanag.h File Reference
#include <owl/private/defs.h>
#include <owl/window.h>
#include <htmlhelp.h>
#include <owl/preclass.h>
#include <owl/posclass.h>

Classes

struct  owl::THelpHitInfo
class  owl::THlpNotify
class  owl::THlpPopup
class  owl::THlpAklink
class  owl::THlpEnumIt
class  owl::THlpSetInfoType
class  owl::THlpFtsQuery
class  owl::THlpWinType
class  owl::THlpTrack
class  owl::THelpContext
class  owl::THelpFileManager
class  owl::THtmlHelpDll
 Wrapper for the HHCTRL.OCX itself. More...

Defines

#define DECLARE_HELPCONTEXT(cls)   static THelpContext __hcEntries[]
#define DEFINE_HELPCONTEXT(cls)   THelpContext cls::__hcEntries[] = {
#define END_HELPCONTEXT
#define HCENTRY_MENU(hcId, menuId)   THelpContext(0, hcId, menuId, 0)
#define HCENTRY_CONTROL(hcId, ctlId)   THelpContext(0, hcId, 0, ctlId)
#define HCENTRY_MENU_AND_CONTROL(hcId, menuId, ctlId)   THelpContext(0, hcId, menuId, ctlId)
#define SETUP_HELPCONTEXT(appCls, cls)
#define CLEANUP_HELPCONTEXT(appCls, cls)

Typedefs

typedef TDllLoader< THtmlHelpDll > owl::THtmlHelp

Functions

bool owl::IsIndirectHelpContext (const THelpContext &context)
bool owl::IsLastIndirectContext (const THelpContext &context)

Variables

const int owl::TablePtr = -1

Detailed Description

Declares THelpContext and THelpFileManager.


Define Documentation

#define CLEANUP_HELPCONTEXT (   appCls,
  cls 
)
Value:
{                                                               \
    appCls* app = TYPESAFE_DOWNCAST(GetApplication(), appCls);    \
    if (app)                                                      \
      app->RemoveContextInfo(this);                               \
  }
#define END_HELPCONTEXT
Value:
THelpContext(0, 0, 0, 0)   \
  }
#define SETUP_HELPCONTEXT (   appCls,
  cls 
)
Value:
{                                                                     \
    appCls* app = TYPESAFE_DOWNCAST(GetApplication(), appCls);          \
    if (app) {                                                          \
      for (THelpContext* hc = &__hcEntries[0]; !IsLastIndirectContext(*hc); hc++) { \
        app->AddContextInfo(this,                                       \
                            hc->GetHelpFileContextId(),                 \
                            hc->GetMenuContextId(),                     \
                            hc->GetControlContextId());                 \
      }                                                                 \
    }                                                                   \
  }