18#if !defined(OWL_HLPMANAG_RH)
19# include <owl/hlpmanag.rh>
22#if defined(__BORLANDC__)
30static tchar HtmlHelpDllName[] =
_T(
"HHCTRL.OCX");
38 HtmlHelp(*
this,
"HtmlHelpW")
40 HtmlHelp(*
this,
"HtmlHelpA")
190 if(THtmlHelp::IsAvailable()){
198 hPop.clrBackground = -1;
199 hPop.clrForeground = -1;
200 hPop.rcMargins.left = -1;
201 hPop.rcMargins.bottom = -1;
202 hPop.rcMargins.right = -1;
205 hPop.pszText =
nullptr;
206 hPop.pszFont =
nullptr;
223 if(THtmlHelp::IsAvailable()){
264 ::SetCursor(*HelpCursor);
298 Info.cbSize =
sizeof(Info);
307 Info.iCtrlId =
gd->GetId();
314 Info.dwContextId = 0;
323 Info.iCtrlId = ::GetDlgCtrlID(
hWnd);
324 Info.hItemHandle =
hWnd;
371 Info.cbSize =
sizeof(Info);
373 Info.iCtrlId =
static_cast<int>(
msg.wParam);
374 Info.dwContextId = 0;
380 switch (
msg.message) {
559 HelpFileContextId(0),
572 HelpFileContextId(helpId),
599 HelpFileContextId =
other.GetHelpFileContextId();
600 MenuContextId =
other.GetMenuContextId();
601 ControlContextId =
other.GetControlContextId();
602 Window =
other.GetWindow();
612 return Window ==
other.GetWindow() &&
613 HelpFileContextId ==
other.GetHelpFileContextId() &&
614 MenuContextId ==
other.GetMenuContextId() &&
615 ControlContextId ==
other.GetControlContextId();
623 return HelpFileContextId <
other.GetHelpFileContextId();
Definition of class TApplication.
#define PRECONDITION(condition)
Derived from TModule and TMsgThread and virtually derived from TEventHandler, TApplication acts as an...
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.
TGadget is the base class for the following derived gadget classes:
Derived from TWindow, TGadgetWindow maintains a list of tiled gadgets for a window and lets you dynam...
THelpContext is a class that maintains information about a menu item id and a child control id with a...
bool operator==(const THelpContext &) const
Returns true if the context entries match.
bool operator<(const THelpContext &) const
THelpContext()
Default constructor that initializes every data member to zero.
THelpContext & operator=(const THelpContext &)
Makes a copy of the context entry.
THelpFileManager, which is designed to be a mix-in for TApplication, uses the global context table.
virtual bool ProcessHelpMsg(MSG &msg)
HWND HtmlHelp(TWindow *, LPCTSTR lpszHelp, uint hlpCmd, DWORD_PTR data)
TBaseList< THelpContext > TContextList
void RemoveContextInfo(TWindow *)
Removes all the entries in the context table for the window.
void EvHelp(const HELPINFO &)
Event handler for the WM_HELP message.
void AddContextInfo(TWindow *, int helpId, int menuId, int controlId)
Adds an entry into the global context table.
virtual ~THelpFileManager()
Deletes the allocated context table.
virtual void SetHelpCursor()
THelpFileManager(const tstring &helpFileName)
Constructor.
bool GetHelpContextFromMenu(THelpContext &, int menuId) const
Returns true if a match for the menu item ID was found.
virtual void DeactivateHelp()
Deactivates the help.
tstring GetHelpFile() const
Returns the name of the help file.
virtual void ActivateHelp(TWindow *, int helpFileContextId, uint hlpCmd=HELP_CONTEXT)
Called by EvHelp() to activate the help file with the help context ID.
TContextList * ContextTable
void SetHelpFile(const tstring &helpFileName)
Changes the name of the help file.
void CeContextHelp(TCommandEnabler &ce)
bool GetHelpContextFromControl(THelpContext &, int controlId, HWND ctrl) const
Returns true if a match for the control ID was found.
void SetWindowsPos(const TRect &rect)
void SetToolBarFlags(int flags)
void SetProperties(int prop)
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...
HWND ChildWindowFromPoint(const TPoint &point) const
Determines which of the child windows contains the point specified in TPoint.
void ScreenToClient(TPoint &point) const
Uses the screen coordinates specified in point to calculate the client window's coordinates and then ...
HWND GetHandle() const
Returns the handle of the window.
#define DEFINE_RESPONSE_TABLE1(cls, base)
Macro to define a response table for a class with one base.
Definition of class TFrameWindow.
Definition of TGadgetList, TGadgetWindow & TGadgetWindowFont A list holding gadgets,...
Declares THelpContext and THelpFileManager.
Object Windows Library (OWLNext Core)
TWindow * GetWindowPtr(HWND, const TApplication *)
Raw function to retrieve a TWindow pointer given an HWND from the a given app, or any app (app==0).
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.
STDAPI DllCanUnloadNow()
OLE 2.0 entry point for checking if DLL has no clients and can be unloaded.
STDAPI DllGetClassObject(const GUID &clsid, const GUID &iid, void **retObj)
OLE 2.0 entry point for obtaining a class factory for a particular CLSID Don't let any exceptions blo...
#define TYPESAFE_DOWNCAST(object, toClass)
Definition of container classes used and made available by OWL.
Base window class TWindow definition, including HWND encapsulation.
#define EV_COMMAND_ENABLE(id, method)
Response table entry for enabling a command.
#define EV_COMMAND(id, method)
Response table entry for a menu/accelerator/push button message.