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.
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) { }
-- Rocky
-- DreamSys Software (http://www.dreamsyssoft.com)
-- Free Tiff 2 PDF Library (http://www.dreamsyssoft.com/tiff-to-pdf-api)
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