CWindow::ModifyStyle

BOOL ModifyStyle( DWORD dwRemove, DWORD dwAdd, UINT nFlags = 0 );

Return Value

TRUE if the window styles are modified; otherwise, FALSE.

Parameters

dwRemove

[in] Specifies the window styles to be removed during style modification.

dwAdd

[in] Specifies the window styles to be added during style modification.

nFlags

[in] Window-positioning flags. For a list of possible values, see the SetWindowPos function in the Win32 SDK.

Remarks

Modifies the window styles of the CWindow object. Styles to be added or removed can be combined by using the bitwise OR ( | ) operator. See the CreateWindow function in the Win32 SDK for information about the available window styles.

If nFlags is nonzero, ModifyStyle calls the Win32 function SetWindowPos, and redraws the window by combining nFlags with the following four flags:

To modify a window’s extended styles, call ModifyStyleEx.

CWindow OverviewClass Members

See Also   CWindow::GetStyle