CWinTraitsOR

This class provides a simple method of standardizing the traits of an ATL window object. You are able to specify both the standard and extended styles for the ATL window object.

CWinTraitsOR provides default values for window styles and extended styles used to create a window. These values will be added (using the logical OR operator) to values provided during the creation of a window.

In addition to CWinTraitsOR, CWinTraits provides the same functionality without the ability to combine styles.

At a Glance

Header file: Atlwin.h
Windows CE versions: 2.10 and later
Complete documentation: Visual C++ documentation

Syntax

template < DWORD t_dwStyle = 0, DWORD t_dwExStyle = 0, class TWinTraits = CControlWinTraits >

class CWinTraitsOR

Remarks

Windows CE does not support the following dwExStyle flags:

WS_EX_ACCEPTFILES WS_EX_LEFTSCROLLBAR
WS_EX_LEFT WS_EX_MDICHILD
WS_EX_LTRREADING WS_EX_PALETTEWINDOW
WS_EX_NOPARENTNOTIFY WS_EX_RIGHTSCROLLBAR
WS_EX_RIGHT WS_EX_TOOLWINDOW
WS_EX_RTLREADING WS_EX_TRANSPARENT
WS_EX_APPWINDOW  

Windows CE does not support the following dwStyle flags:

WS_CHILDWINDOW WS_ICONIC
WS_MAXIMIZE WS_MAXIMIZEBOX
WS_MINIMIZE WS_MINIMIZEBOX
WS_OVERLAPPEDWINDOW WS_POPUPWINDOW
WS_SIZEBOX WS_THICKFRAME
WS_TILED WS_TILEDWINDOW