10#if !defined(OWL_CONTROL_H)
14#if defined(BI_HAS_PRAGMA_ONCE)
43 int x,
int y,
int w,
int h,
49 int x,
int y,
int w,
int h,
65 virtual int CompareItem(COMPAREITEMSTRUCT & compareInfo);
66 virtual void DeleteItem(DELETEITEMSTRUCT & deleteInfo);
67 virtual void MeasureItem(MEASUREITEMSTRUCT & measureInfo);
68 virtual void DrawItem(DRAWITEMSTRUCT & drawInfo);
74 virtual void ODAFocus(DRAWITEMSTRUCT & drawInfo);
75 virtual void ODASelect(DRAWITEMSTRUCT & drawInfo);
TControl unifies its derived control classes, such as TScrollBar, TControlGadget, and TButton.
auto EvEraseBkgnd(HDC) -> bool
Provides special handling for predefined controls.
void EvPaint()
Intercept WM_PAINT to redirect from TWindow to the underlying control if this Owl object is just a wr...
virtual void MeasureItem(MEASUREITEMSTRUCT &measureInfo)
Function called when a WM_MEASUREITEM is sent to parent on our behalf.
virtual void ODAFocus(DRAWITEMSTRUCT &drawInfo)
Responds to a notification sent to a drawable control when the focus has shifted to or from the contr...
virtual void ODASelect(DRAWITEMSTRUCT &drawInfo)
Responds to a notification sent to a drawable control when the selection state of the control changes...
virtual void ODADrawEntire(DRAWITEMSTRUCT &drawInfo)
Responds to a notification message sent to a drawable control when the control needs to be drawn.
void EvMeasureItem(uint ctrlId, MEASUREITEMSTRUCT &meas)
Handles WM_MEASUREITEM message (for owner draw controls) by calling the corresponding virtual functio...
void EvDeleteItem(uint ctrlId, const DELETEITEMSTRUCT &del)
Handles WM_DELETEITEM message (for owner draw controls) by calling the corresponding virtual function...
virtual void DrawItem(DRAWITEMSTRUCT &drawInfo)
Function called when a WM_DRAWITEM is sent to parent on our behalf.
void EvDrawItem(uint ctrlId, const DRAWITEMSTRUCT &draw)
Handles WM_DRAWITEM message (for owner draw controls) by calling the corresponding virtual function.
TControl(TWindow *parent, int id, LPCTSTR title, int x, int y, int w, int h, TModule *module=nullptr)
Invokes TWindow's constructor, passing it parent (parent window), title (caption text),...
int EvCompareItem(uint ctrlId, const COMPAREITEMSTRUCT &comp)
Handles WM_COMPAREITEM message (for owner draw controls) by calling the corresponding virtual functio...
virtual void DeleteItem(DELETEITEMSTRUCT &deleteInfo)
Function called when a WM_DELETEITEM is sent to parent on our behalf.
virtual int CompareItem(COMPAREITEMSTRUCT &compareInfo)
Function called when a WM_COMPAREITEM is sent to parent on our behalf.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TWindow(TWindow *parent, LPCTSTR title=nullptr, TModule *module=nullptr)
Adds this to the child list of parent if nonzero, and calls EnableAutoCreate so that this will be cre...
#define DECLARE_STREAMABLE_OWL(cls, ver)
#define DECLARE_STREAMABLE_INLINES(cls)
Object Windows Library (OWLNext Core).
Base window class TWindow definition, including HWND encapsulation.