Here is an easy question.
How does the industry refer to storing mulitple boolean value state in one integer?
The SetWindowPos api is an example.
SWP_NOSIZE DEFINE 1 SWP_NOMOVE DEFINE 2 SWP_NOZORDER DEFINE 4 SWP_NOREDRAW DEFINE 8 SWP_NOACTIVATE DEFINE 16
If the integer is 11 then 1, 2 and 8 (SWP_NOSIZE
, SWP_NOMOVE
and SWP_NOREDRAW
) are on.
What is the buzz word for this pattern?