INFO: WS_EX_WINDOWEDGE Does Not Work Without Window Frame Style

This article has been archived. It is offered "as is" and will no longer be updated.
The WS_EX_WINDOWEDGE style is new to Windows 95. The style specifies that awindow has a border with a raised edge. If the WS_EX_WINDOWEDGE style isused on a window that doesn't have either the WS_THICKFRAME or WS_DLGFRAMEstyle, the WS_EX_WINDOWEDGE style has no effect. This is because theWS_EX_WINDOWEDGE style modifies the window's frame. Therefore, if no frameis specified, then the window does not receive the 3-D effect.

This problem typically occurs when you are trying to give a raised edge toa control. Because controls by default have no frame, only a border, theWS_EX_WINDOWEDGE style is ignored. To work around the problem, add theWS_DLGFRAME style to the control.
raised edge child window

Article ID: 136311 - Last Review: 01/11/2015 01:02:53 - Revision: 3.0

  • kbnosurvey kbarchive kbinfo kbwndw kbwndwprop KB136311