Microsoft KB Archive/136311

{|
 * width="100%"|

INFO: WS_EX_WINDOWEDGE Does Not Work Without Window Frame Style

 * }

Q136311

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), used with:
 * Microsoft Windows 95
 * the operating system: Microsoft Windows 2000

-

SUMMARY
The WS_EX_WINDOWEDGE style is new to Windows 95. The style specifies that a window has a border with a raised edge. If the WS_EX_WINDOWEDGE style is used on a window that doesn't have either the WS_THICKFRAME or WS_DLGFRAME style, the WS_EX_WINDOWEDGE style has no effect. This is because the WS_EX_WINDOWEDGE style modifies the window's frame. Therefore, if no frame is specified, then the window does not receive the 3-D effect.

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

Additional query words: raised edge child window

Keywords : kbOSWin2000 kbSDKWin32 kbGrpDSUser kbOSWin95 kbWndw kbWndwProp

Issue type : kbinfo

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch