Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
MLM_SETFONT (1.2)
◄Message Group► ◄Overview► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINMLE
MLM_SETFONT
mp1 = MPFROMP(pfattrs); /* pointer to structure with font info. */
mp2 = 0L; /* not used, must be zero */
An application sends an MLM_SETFONT message to set the font for a
multiple-line entry field (MLE).
Parameter Description
────────────────────────────────────────────────────────────────────────────
pfattrs Low and high word of mp1. Points to the FATTRS structure that
contains the font information.
Return Value
The return value is TRUE if the font is successfully set or FALSE if an
error occurs.
Example
This example retrieves the current font information, changes it to italic,
and sets it using the MLM_SETFONT message:
FATTRS fat;
fat.usRecordLength = sizeof(FATTRS);
WinSendMsg(hwndMle, MLM_QUERYFONT, (MPARAM) &fat, (MPARAM) 0L);
fat.fsSelection = FATTR_SEL_ITALIC;
WinSendMsg(hwndMle, MLM_SETFONT, (MPARAM) &fat, (MPARAM) 0);
See Also
MLM_QUERYFONT, FATTRS
♦