setCtlFont

Requires FilterMeister 1.0 Beta 9.1 (Feb 2009) or newer

Syntax

int setCtlFont(int n, int i)

Arguments

n
The number of the control to set the font for
i
The index number of the font (from 0 - 31) to use, or -1 for the default GUI font.

Return

Returns true if setting the font succeeded, false otherwise.

Description

Sets the font that the control will use when drawing text. The font must first have been created/assigned using the createFont function.

Comment

Behind the scenes, FilterMeister sends the [WM_SETFONT] message to the control via the [SendMessage] Win32 function.

Example

// Make control #10 use the default Windows UI font
setCtlFont(10, -1);

Also see

createFont, deleteFont