April 19, 2024

Dynamic Windows Function [dw_font_text_extents_get]

Syntax

void dw_font_text_extents_get(HWND handle, HPIXMAP pixmap, char *text, int *width, int *height)

Parameters

HWND handle: Handle to the window.
HPIXMAP pixmap: Handle to the pixmap. (choose only one of these)
char *text: Text to be queried.
int *width: Pointer to a variable to be filled in with the width.
int *height: Pointer to a variable to be filled in with the height.

Description

Query the width and height of a text string.