Most WS_ window styles are single-bit values; each of which takes only one bit in dwStyles.
Here dwStylesyou can get from:DWORD dwStyles = CWnd::GetStyle();
But some WS_ styles, such as WS_CAPTION, WS_OVERLAPPEDWINDOW,
WS_POPUPWINDOW, merge several single-bit style.
OK .
DWORD dwSomeStyle = WS_... ;
BOOL bSomeStyleIsPresentForThisWnd;
if (dwStyles & dwSomeStyle)
bSomeStyleIsPresentForThisWnd = TRUE;
else
bSomeStyleIsPresentForThisWnd = FALSE;