FNTM FILTERLIST
Appearance
This message is sent whenever the Font Dialog is preparing to add a font family name, font style type, or point size entry to the combination box fields that contain these parameters.
Syntax
param1 PSZ pFontname; /* Pointer to the text string that is being added to the combination box. */ param2 USHORT usFieldId; /* Field identifier. */ USHORT usFontType; /* Font information. */
Parameters
- pFontname (PSZ) - Input
- Pointer to the text string that is being added to the combination box.
- usFieldId (USHORT) - Input
- Field identifier. The identifier of the field to which the text string is being added. The identifier can be one of the following:
- FNTI_FAMILYNAME: The text string is an addition to the family name combination box.
- FNTI_STYLENAME: The text string is an addition to the style combination box.
- FNTI_POINTSIZE: The text string is an addition to the size combination box.
- usFontType (USHORT) - Input
- Font information. The family name, style, or point size that is being added to the combination box. Use one of the following to identify the font information that is being added:
- FNTI_BITMAPFONT: A bit-map font is being added or a point size of a bit-map font is being added.
- FNTI_VECTORFONT: A vector font is being added.
- FNTI_SYNTHESIZED: A synthesized font is being added. This value is valid for the style field only.
- FNTI_FIXEDWIDTHFONT: A fixed width (monospace) font is being added.
- FNTI_PROPORTIONALFONT: A proportionally spaced font is being added.
- FNTI_DEFAULTLIST: A point size from the default list (or the application-supplied list) is being added.
Returns
- rc (BOOL) - returns
- Filter indicator:
- TRUE: Add the text string to the combination box.
- FALSE: Do not add the text string to the combination box.
Remarks
The application checks this message to obtain the name and the &per.TYPE EA extended attribute of the file being added. The application then determines whether or not the file will be added.
When FALSE is returned, the file is not added to the dialog's list box.
Default Processing
The WinDefDlgProc function does not expect to receive this message and takes no action on it other than to return FALSE.