I was going through some VC++ code in a large code-base and came across this:
if (nState & TOOL_TIPS_VISIBLE) nState &= ~TOOL_TIPS_VISI
& and | are similar to && and ||, only they works in bitwise fashion. So now you could imagine &= and |= works similar to +=. That is x &= y; ==> x = x & y;
&
|
&&
||
&=
|=
+=
x &= y; ==> x = x & y;