WM_STYLECHANGING

The WM_STYLECHANGING message is sent to a window when the SetWindowLong function is about to change one or more of the window's styles.

WM_STYLECHANGING 
wStyleType = wParam;            // window styles or extended styles 
lpss = (LPSTYLESTRUCT) lParam;  // structure containing new styles 
 

Parameters

wStyleType
Value of wParam. Specifies whether the window's styles or extended styles have changed. This parameter can be a combination of the following values:
Value Meaning
GWL_EXSTYLE The window's extended styles are changing.
GWL_STYLE The window's styles are changing.

lpss
Value of lParam. Pointer to a STYLESTRUCT structure that contains the proposed new styles for the window. An application can examine the styles and, if necessary, change them.

Return Values

An application should return zero if it processes this message.

QuickInfo

  Windows NT: Requires version 3.51 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in winuser.h.

See Also

Windows Overview, Window Messages, STYLESTRUCT, WM_STYLECHANGED