51 if (idleCount == 0 && wnd &&
IsFlat() ){
57 ::MapWindowPoints(HWND_DESKTOP, *wnd, LPPOINT(&rect), 2);
131 SetWindowFont(
static_cast<HFONT
>(GetStockObject(ANSI_VAR_FONT)),
true);
174 SetWindowFont(
static_cast<HFONT
>(GetStockObject(ANSI_VAR_FONT)),
true);
238 bool haveScroll = wrect != rect;
The GDI Brush class is derived from TGdiObject.
TBrush(HBRUSH handle, TAutoDelete autoDelete=NoAutoDelete)
TBrush encapsulates an HBRUSH.
static const TColor LtBlue
Static TColor object with fixed Value set by RGB(0, 0, 255).
static const TColor Sys3dFace
The symbolic system color value for the face color of 3-dimensional display elements.
static const TColor LtGreen
Static TColor object with fixed Value set by RGB(0, 255, 0).
static const TColor SysWindow
The symbolic system color value for the background of each window.
static const TColor LtRed
Static TColor object with fixed Value set by RGB(255, 0, 0).
You can use TComboBox to create a combo box or a combo box control in a parent TWindow,...
int SetExtendedUI(bool Extended)
Specifies whether the combo box uses the extended user interface or the default user interface.
void SetupWindow()
Limits the amount of text that the user can enter in the combo box's edit control to the value of Tex...
void EvPaint()
Intercept WM_PAINT to redirect from TWindow to the underlying control if this Owl object is just a wr...
TDC is the root class for GDI DC wrappers.
bool FrameRect(int x1, int y1, int x2, int y2, const TBrush &brush)
Draws a border on this DC around the given rectangle, rect, using the given brush,...
A TEdit is an interface object that represents an edit control interface element.
void SetupWindow() override
void SetupWindow() override
void SetupWindow() override
bool IdleAction(long idleCount)
void SetFlatStyle(bool flat=true)
void Paint(TDC &dc, TRect &rect)
Derived from TWindow, TGadgetWindow maintains a list of tiled gadgets for a window and lets you dynam...
static uint GetFlatStyle()
Returns the flat style.
@ FlatStandard
Flat style IE 3.0 - base style.
An interface object that represents a corresponding list box element.
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
TRect & Offset(int dx, int dy)
Changes this rectangle so its corners are offset by the given delta values.
TRect & Inflate(int dx, int dy)
Inflates a rectangle inflated by the given delta arguments.
bool Contains(const TPoint &point) const
Returns true if the given point lies within this rectangle; otherwise, it returns false.
@ SunkenOuter
Sunken outer edge only.
static bool DrawEdge(TDC &dc, const TRect &frame, uint edge, uint flags)
This is a static function that performs the actual drawing of edges for a UIBorder or an external cli...
static const TUIMetric CxHThumb
Derived from TDC, TWindowDC is a device context (DC) class that provides access to the entire area ow...
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
static void GetCursorPos(TPoint &pos)
Retrieves the cursor's current position (in window screen coordinates) and copies the values into the...
bool IsWindowEnabled() const
Returns true if the window is enabled.
void SetWindowFont(HFONT font, bool redraw=true)
Sets the font that a control uses to draw text.
TWindow * GetParentO() const
Return the OWL's parent for this window.
void MapWindowPoints(HWND hWndTo, TPoint *pts, int count) const
Maps a set of points in one window to a relative set of points in another window.
void GetWindowRect(TRect &rect) const
Gets the screen coordinates of the window's rectangle and copies them into rect.
void ScreenToClient(TPoint &point) const
Uses the screen coordinates specified in point to calculate the client window's coordinates and then ...
virtual void SetupWindow()
Performs setup following creation of an associated MS-Windows window.
void GetClientRect(TRect &rect) const
Gets the coordinates of the window's client area and then copies them into the object referred to by ...
virtual void Invalidate(bool erase=true)
Invalidates (mark for painting) the entire client area of a window.
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.
Another implementation of Flat controls.
void SetupWindow() override
Object Windows Library (OWLNext Core).
#define TYPESAFE_DOWNCAST(object, toClass)
Definition of the UI Helper Classes: TUIHandle, TUIBorder, TUIFace, TUIPart.
Definition of TUIMetric, a UI metrics provider class.