9#if !defined(OWL_HLPMANAG_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
44 operator NMHDR&() {
return hdr; }
95 void SetStyle(
int style);
96 void SetProperties(
int prop);
97 void SetToolBarFlags(
int flags);
105 operator NMHDR&() {
return hdr; }
128 int GetHelpFileContextId()
const;
129 int GetMenuContextId()
const;
130 int GetControlContextId()
const;
132 void SetWindow(
TWindow* window);
136 int HelpFileContextId;
138 int ControlContextId;
161 virtual void DeactivateHelp();
170 void RemoveContextInfo(
TWindow*);
173 virtual bool ProcessHelpMsg (
MSG&
msg);
174 virtual void SetHelpCursor();
179 void CmContextHelp ();
229#if defined(_OWLDLL) || defined(BI_APP_DLL)
243#define DECLARE_HELPCONTEXT(cls) \
244 static THelpContext __hcEntries[]
246#define DEFINE_HELPCONTEXT(cls)\
247 THelpContext cls::__hcEntries[] = {
249#define END_HELPCONTEXT \
250 THelpContext(0, 0, 0, 0) \
253#define HCENTRY_MENU(hcId, menuId) \
254 THelpContext(0, hcId, menuId, 0)
256#define HCENTRY_CONTROL(hcId, ctlId) \
257 THelpContext(0, hcId, 0, ctlId)
259#define HCENTRY_MENU_AND_CONTROL(hcId, menuId, ctlId) \
260 THelpContext(0, hcId, menuId, ctlId)
262#define SETUP_HELPCONTEXT(appCls, cls) \
264 appCls* app = TYPESAFE_DOWNCAST(GetApplication(), appCls); \
266 for (THelpContext* hc = &__hcEntries[0]; !IsLastIndirectContext(*hc); hc++) { \
267 app->AddContextInfo(this, \
268 hc->GetHelpFileContextId(), \
269 hc->GetMenuContextId(), \
270 hc->GetControlContextId()); \
275#define CLEANUP_HELPCONTEXT(appCls, cls) \
277 appCls* app = TYPESAFE_DOWNCAST(GetApplication(), appCls); \
279 app->RemoveContextInfo(this); \
307 if (
context.GetMenuContextId() == 0 &&
308 context.GetHelpFileContextId() == 0 &&
309 context.GetControlContextId() == 0)
339 return HelpFileContextId;
348 return MenuContextId;
357 return ControlContextId;
Base class for an extensible interface for auto enabling/disabling of commands (menu items,...
TCursor, derived from TGdiBase, represents the GDI cursor object class.
TEventHandler is a base class from which you can derive classes that handle messages.
THelpContext is a class that maintains information about a menu item id and a child control id with a...
void SetWindow(TWindow *window)
Sets the window for this context entry.
int GetHelpFileContextId() const
Returns the help file context id for the context entry.
int GetControlContextId() const
Returns the child control id for this context entry.
TWindow * GetWindow() const
Returns the window this entry is associated with.
int GetMenuContextId() const
Returns the menu id for this context entry.
THelpFileManager, which is designed to be a mix-in for TApplication, uses the global context table.
DECLARE_RESPONSE_TABLE(THelpFileManager)
TBaseList< THelpContext > TContextList
void TranslateWinToHTML(bool translate)
void EvHelpHit(const THelpHitInfo &)
TBaseListIterator< THelpContext > TContextListIterator
tstring GetHelpFile() const
Returns the name of the help file.
TContextList * ContextTable
HWND HtmlHelp(TWindow *w, const tstring &helpFile, uint hlpCmd, DWORD_PTR data)
Wrapper for the HHCTRL.OCX itself.
TModuleProc4< HWND, HWND, LPCTSTR, uint, DWORD_PTR > HtmlHelp
TModuleProc0< HRESULT > DllCanUnloadNow
TModuleProc3< HRESULT, REFCLSID, REFIID, void ** > DllGetClassObject
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
Object Windows Library (OWLNext Core)
TDllLoader< THtmlHelpDll > THtmlHelp
Loader for the HHCTRL.OCX.
bool IsLastIndirectContext(const THelpContext &context)
Return true if this entry is the last entry.
bool IsIndirectHelpContext(const THelpContext &context)
Return true if the context entry is a pointer to another table.
THelpHitInfo(const TPoint &pt, TWindow *wnd)
THelpHitInfo(int x, int y, TWindow *wnd)
Base window class TWindow definition, including HWND encapsulation.