60 return static_cast<int>(
r);
72 return static_cast<int>(
r);
115 const auto r = GetItem(
i);
116 if (!
r)
throw TXOwl(
_T(
"TSysLink::GetItem failed"));
149 const auto p2 =
reinterpret_cast<TParam2>(&
i);
179 const auto r = HitTest(
i);
180 return r ? std::make_unique<LITEM>(
i.item) :
nullptr;
227void TAutoSysLink::EvFollowLink()
#define PRECONDITION(condition)
TCurrentEvent & GetCurrentEvent()
Return the current event from the message queue.
Derives from TSysLink and provides automatic handling of link activation.
TAutoSysLink(TWindow *parent, int id, const tstring &markupText, const TRect &, TModule *module=nullptr)
Constructs a SysLink from arguments.
TControl unifies its derived control classes, such as TScrollBar, TControlGadget, and TButton.
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.
The tagSIZE struct is defined as.
Encapsulates the SysLink common control, a Windows control that provides a convenient way to embed hy...
auto GetItem(LITEM &inOut) -> bool const
Retrieves the states and attributes of the specified anchor item.
TSysLink(TWindow *parent, int id, const tstring &markupText, const TRect &, TModule *module=nullptr)
Constructs a SysLink from arguments.
auto GetWindowClassName() -> TWindowClassName override
Returns the class name for a SysLink control.
auto GetUrl(int index) -> tstring const
Returns the HREF attribute of the specified anchor item.
auto GetIdealSize(int maxWidth, TSize &out) -> int const
Retrieves the ideal size of the control for a given maximum width.
auto SetItem(const LITEM &) -> bool
Sets the states and attributes of the specified anchor item.
auto HitTest(LHITTESTINFO &inOut) -> bool const
Performs a hit test on this control and returns information about the link hit, if any.
auto GetIdealHeight() -> int const
Retrieves the preferred height of the control for the control's current width.
Type-safe encapsulation of a Windows class name, a union between ATOM and LPCTSTR.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
TApplication * GetApplication() const
Gets a pointer to the TApplication object associated with this.
int GetId() const
Returns Attr.Id, the ID used to find the window in a specified parent's child list.
HWND THandle
TWindow encapsulates an HWND.
TXOwl is root class of the ObjectWindows exception hierarchy.
#define EV_NM_CLICK(id, method)
void method()
#define EV_NM_RETURN(id, method)
void method()
#define DEFINE_RESPONSE_TABLE1(cls, base)
Macro to define a response table for a class with one base.
#define _USES_CONVERSION_A
Object Windows Library (OWLNext Core)
void InitializeCommonControls(uint controlFlags)
Wrapper for the Windows API function InitCommmonControlsEx.
TParam2 Param2
Second parameter (LPARAM)
Definition of class TSysLink.