TWidgetSet.DrawFrameControl function
Draws a window frame control, of the specified type and style.
Declaration
function DrawFrameControl(DC: HDC; const Rect: TRect; uType: Cardinal;
uState: Cardinal): Boolean; virtualArguments
DC | The window frame device context. |
Rect | |
uType | The control type, e.g. DFC_CAPTION. |
uState | The control state, e.g. DFCS_CAPTIONCLOSE (close button). |
Function result
False on failure.Description
A window frame includes these components (uType):
- title bar (DFC_CAPTION)
- menu bar (DFC_MENU)
- popup menus (DFC_POPUPMENU)
- scrollbars (DFC_SCROLL)
Window managers do not normally allow the user to paint the components for a window frame, and do not supply a DC for that purpose.
The available features depend on the window manager for the platform, and the capabilities for the widgetset.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
