Style-change structure. This structure is returned by the FNTM_STYLECHANGED message.

All "old" fields describe the style attributes before the user made a change. The other, or "new", parameters describe the style that will be in effect after this is passed to WinDefFontDlgProc. When the "old" and "new" values are the same, the user made no change.

For further details of the parameters, see FONTDLG.

typedef struct _STYLECHANGE {
  USHORT     usWeight;        /*  New weight of font. */
  USHORT     usWeightOld;     /*  Old weight of font. */
  USHORT     usWidth;         /*  New width of font. */
  USHORT     usWidthOld;      /*  Old width of font. */
  ULONG      flType;          /*  New type of font. */
  ULONG      flTypeOld;       /*  Old type of font. */
  ULONG      flTypeMask;      /*  New type mask. */
  ULONG      flTypeMaskOld;   /*  Old type mask. */
  ULONG      flStyle;         /*  New selected style bits. */
  ULONG      flStyleOld;      /*  Old selected style bits. */
  ULONG      flStyleMask;     /*  New mask of style bits to use. */
  ULONG      flStyleMaskOld;  /*  Old mask of style bits to use. */
} STYLECHANGE;

typedef   STYLECHANGE   * PSTYLECHANGE ;


[Back] [Next]