Partager via


CWindow::GetStyle

Retrieves the window styles of the window.

DWORD GetStyle( ) const throw();

Return Value

The window's styles.

Remarks

To retrieve the extended window styles, call GetExStyle.

Example

//The following example attaches an HWND to the CWindow object and  
//calls CWindow::GetStyle() to retrieve the styles of the window

CWindow myWindow;
myWindow.Attach(hWnd);
DWORD dwStyles = myWindow.GetStyle();

Requirements

Header: atlwin.h

See Also

Reference

CWindow Class

CWindow::ModifyStyle

Window Styles