Vote UpVote

Translating flags in API calls, part 2

Source Code Adventures – As promised, this is part 2 of my article on translating flags in API calls. If you haven’t read part 1 yet, please do so now. Sometimes, you get API calls that make real hefty use of flags. One such example is DrawFrameControl, which has one flag to specify the type of control to draw as well as a second flag to specify the style of that control. The values are all declared as DFC_ or DFCS_ constants and they may be freely combined. Only, not all combinations work together and a lot of developers combine the flags using the plus-operator instead of or, which certainly doesn’t help. Following ...
Favorite? Off-Topic? Cobus Kruger @ 2009-07-06 21:17


Visits: 270
Votes: 3
Favorites: 1
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)