Jump to content

STYLECHANGE

From EDM2
Revision as of 02:04, 21 April 2025 by Martini (talk | contribs) (Created page with "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. == Type == struct == C Declaration Method == typedef == Example...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

Type

struct

C Declaration Method

typedef

Example Code

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 ;