The title is vague and may be wrong but I am using the SetStyle and GetStyle function in the Win32 API and the GetStyle returns the style bytes. I want to know how you tell if (lets say) WS_VISIBLE is part of those bytes returned by GetStyle.
Printable View
The title is vague and may be wrong but I am using the SetStyle and GetStyle function in the Win32 API and the GetStyle returns the style bytes. I want to know how you tell if (lets say) WS_VISIBLE is part of those bytes returned by GetStyle.
Code:if (GetStyle() & WS_VISIBLE)
{
}
ok so how do I tell if it isn't in there, I tried !& and !GetStyle() & style but neither seemed to work.
(GetStyle() & WS_VISIBLE) == 0
or
!(GetStyle() & WS_VISIBLE)
Operator precedence matters.
ok thank you