No formal product support is available from Microsoft for this Beta product. For information about obtaining support for a Beta release, please see the documentation included with the Beta product files, or check the Web location from which you downloaded the release. The information in this article applies to:
SUMMARYWhen you are using bitwise operations to check flags, always use the bitwise AND operator (&) to determine whether a bit is set. MORE INFORMATION
You may be using the equality operator (==) to check whether a single bit is set. For example:
However, this only works if the single bit set for fItemState is ODS_FOCUS. Instead, you should use the & operator. For example:
Even if you only need to check the value of one flag, you should use the & operator to allow for future flags to be added.Windows 2000 includes new flags for existing flag sets. For example, the DRAWITEMSTRUCT structure has two new flags that help an owner window determine whether a control can be drawn without specific keyboard or focus cues. The ODS_NOACCEL and ODS_NOFOCUSRECT flags must be checked along with the ODS_FOCUS flag to make sure that the control is drawn correctly. Additional query words: compatguidestability
Keywords : kbWinOS2000 kbGrpKernBase |
Last Reviewed: May 25, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |