deft.controls.control

Base class for native common controls.

Control creates a child window of a given Win32 class ("Button", "SysListView32", …) and provides the operations common to all controls: text get/set, font assignment, a preferred size, parent message routing (WM_COMMAND / WM_NOTIFY), and opt-in subclassing for controls that need to intercept their own messages.

Members

Classes

Control
class Control

Base class for all Win32 common-control wrappers.

Functions

defaultFont
HFONT defaultFont()

The system default GUI font, used for all controls. Cached stock object.

routeCommand
bool routeCommand(WPARAM wParam, LPARAM lParam)

Route a parent's WM_COMMAND to the originating control. Returns true if a control handled it.

routeNotify
bool routeNotify(LPARAM lParam)

Route a parent's WM_NOTIFY to the originating control. Returns true if a control handled it.

Meta