7#if !defined(OWL_TINYCAPT_H)
11#if defined(BI_HAS_PRAGMA_ONCE)
79 NCCALCSIZE_PARAMS & calcSize,
uint& evRes);
122 bool WaitingForSysCmd;
TDC is the root class for GDI DC wrappers.
TFont derived from TGdiObject provides constructors for creating font objects from explicit informati...
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
The tagSIZE struct is defined as.
Derived from TWindow, TTinyCaption is a mix-in class that handles a set of non-client events to produ...
TEventStatus DoNCLButtonDown(uint hitTest, const TPoint &screenPt)
If the caption bar is not enabled, returns esPartial.
void PaintCaption(bool active)
Calls dc.SelectObject() to select the given rectangle and dc.PatBlt() to paint the tiny caption bar u...
TRect GetMinBoxRect()
Returns the size of the minimize box rectangle.
void EvLButtonUp(uint hitTest, const TPoint &screenPt)
Responds to a mouse button-up message by calling DoLButtonUp.
void PaintSysBox(TDC &dc, TRect &boxRect, bool pressed)
Paints the system box.
void EvSysCommand(uint cmdType, const TPoint &p)
Responds to a WM_SYSCOMMAND message by calling DoSysCommand.
TEventStatus DoSysCommand(uint cmdType, const TPoint &p)
Handle WM_SYSCOMMAND to make sure that SC_KEYMENU and SC_MOUSEMENU bring up our sys menu at the right...
TTinyCaption()
Constructs a TTinyCaption object attached to the given parent window.
void EvMouseMove(uint hitTest, const TPoint &screenPt)
Responds to a mouse-move message by calling DoMouseMove.
TEventStatus DoNCPaint()
If the caption bar is not enabled or is iconized, returns esPartial.
TEventStatus DoMouseMove(uint hitTest, const TPoint &screenPt)
Returns TEventStatus.
void EnableTinyCaption(int ch=0, bool closeBox=false)
Pass closeBox=true to replace SystemMenu box with a box that will close window when clicked Used for ...
void PaintMaxBox(TDC &dc, TRect &boxRect, bool pressed)
Paints a maximize box on the tiny caption bar.
TEventStatus DoLButtonUp(uint hitTest, const TPoint &screenPt)
Releases the mouse capture if the caption bar is enabled and a mouse button is pressed.
TEventStatus DoNCHitTest(const TPoint &screenPt, uint &evRes)
If the caption bar is not enabled, returns esPartial.
TRect GetCaptionRect()
Gets the area of the caption for changing or repainting.
uint EvNCHitTest(const TPoint &screenPt)
Return where in the non client area we are.
TEventStatus DoCommand(uint id, HWND hWndCtl, uint notifyCode, TResult &evRes)
Displays the system menu using TrackPopup so that TTinyCaption sends WM_COMMAND instead of WM_SYSCOMM...
void EvNCLButtonDown(uint hitTest, const TPoint &screenPt)
Responds to a press of the left mouse button while the cursor is within the nonclient area of the cap...
TRect GetSysBoxRect()
Returns the size of the system box rectangle.
TEventStatus DoNCActivate(bool active, bool &evRes)
If the tiny caption is not enabled or is iconic, returns esPartial.
void PaintCloseBox(TDC &dc, TRect &boxRect, bool pressed)
Paints a close box on the tiny caption bar.
auto EvCommand(uint id, HWND hWndCtl, uint notifyCode) -> TResult override
EvCommand provides extra processing for commands, but lets the focus window and its parent windows ha...
void DoSysMenu()
Gets the system menu and sets up menu items.
void PaintMinBox(TDC &dc, TRect &boxRect, bool pressed)
Paints a minimize box on the tiny caption bar.
TEventStatus DoNCCalcSize(bool calcValidRects, NCCALCSIZE_PARAMS &calcSize, uint &evRes)
Return the size of our client area, leaving room for caption bar.
TRect GetMaxBoxRect()
Returns the size of the maximize box rectangle.
void PaintButton(TDC &dc, TRect &boxRect, bool pressed)
Paints a blank button.
void EvNCPaint(HRGN)
Responds to a request to change a title bar or icon.
bool EvNCActivate(bool active)
Responds to a request to change a title bar or icon by calling DoNCActivate.
uint EvNCCalcSize(bool calcValidRects, NCCALCSIZE_PARAMS &calcSize)
Calculates the size of the command window including the caption and border so that it can fit within ...
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)
TEventStatus
Mixin window event implementation return status.
Object Windows Library (OWLNext Core).
LRESULT TResult
Result type.
Base window class TWindow definition, including HWND encapsulation.