Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

STYLESTRUCT structure

Contains the styles for a window.

Syntax


typedef struct tagSTYLESTRUCT {
  DWORD styleOld;
  DWORD styleNew;
} STYLESTRUCT, *LPSTYLESTRUCT;

Members

styleOld

Type: DWORD

The previous styles for a window. For more information, see the Remarks.

styleNew

Type: DWORD

The new styles for a window. For more information, see the Remarks.

Remarks

The styles in styleOld and styleNew can be either the window styles (WS_*) or the extended window styles (WS_EX_*), depending on the wParam of the message that includes STYLESTRUCT.

The styleOld and styleNew members indicate the styles through their bit pattern. Note that several styles are equal to zero; to detect these styles, test for the negation of their inverse style. For example, to see if WS_EX_LEFT is set, you test for ~WS_EX_RIGHT.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

Reference
WM_STYLECHANGED
WM_STYLECHANGING
Conceptual
Windows

 

 

Community Additions

ADD
Show:
© 2015 Microsoft