description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: CWinTraitsOR Class |
CWinTraitsOR Class |
11/04/2016 |
|
|
1eb7b1e8-a9bd-411b-a30a-35a8a10af989 |
This class provides a method for standardizing the styles used when creating a window object.
Important
This class and its members cannot be used in applications that execute in the Windows Runtime.
template <DWORD t_dwStyle = 0,
DWORD t_dwExStyle = 0,
class TWinTraits = CControlWinTraits>
class CWinTraitsOR
t_dwStyle
Default window styles.
t_dwExStyle
Default extended window styles.
Name | Description |
---|---|
CWinTraitsOR::GetWndExStyle | Retrieves the extended styles for the CWinTraitsOR object. |
CWinTraitsOR::GetWndStyle | Retrieves the standard styles for the CWinTraitsOR object. |
This window traits class provides a simple method for standardizing the styles used for the creation of an ATL window object. Use a specialization of this class as a template parameter to CWindowImpl or another of ATL's window classes to specify the minimum set of standard and extended styles to be used for instances of that window class.
Use a specialization of this template if you want to ensure that certain styles are set for all instances of the window class while permitting other styles to be set on a per-instance basis in the call to CWindowImpl::Create.
If you want to provide default window styles that will be used only when no other styles are specified in the call to CWindowImpl::Create
, use CWinTraits instead.
Header: atlwin.h
Call this function to retrieve a combination (using the logical OR operator) of the standard styles of the CWinTraits
object and the default styles specified by t_dwStyle.
static DWORD GetWndStyle(DWORD dwStyle);
dwStyle
Styles used for creation of a window.
A combination of styles that are passed in dwStyle and the default ones specified by t_dwStyle
, using the logical OR operator.
Call this function to retrieve a combination (using the logical OR operator) of the extended styles of the CWinTraits
object and the default styles specified by t_dwStyle
.
static DWORD GetWndExStyle(DWORD dwExStyle);
dwExStyle
Extended styles used for creation of a window.
A combination of extended styles that are passed in dwExStyle and default ones specified by t_dwExStyle
, using the logical OR operator