Jump to content

STYLECHANGE: Difference between revisions

From EDM2
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..."
 
No edit summary
 
Line 1: Line 1:
Style-change structure. This structure is returned by the FNTM_STYLECHANGED message.
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.
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]].
For further details of the parameters, see [[FONTDLG]].

Latest revision as of 02:04, 21 April 2025

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 ;