I'm asking this question in order to clarify on how to process the flags. For example, if

Code:
FLONG flagSet = FO_DBCS_FONT | FO_GRAY16 // I'm trying to illustrate that both these flags are set
in order to process flagSet to see which flags are set, would this approach be the standard one to go about it:
Code:
// determine whether FO_DBCS_FONT is set
if( flagSet & FO_DBCS_FONT)
{
// process some code here
}
I may be completely thinking in the wrong tangent. Basically I'm trying to AND the two flags logically and see if I get non-zeros to determine whether a particular flag is set. Would this work in C++?