Code:
enum TGridDrawState {Grids_3, gdFocused, gdFixed}; . . . procedure SomeProcedure(Value: Int;ARect: TRect; AState: TGridDrawState); . . . if (gdFixed in AState) then . . . etc...
The C++ equivalent is:
Code:
void __fastcall SomeMethod(int Value, TRect Rect, TGridDrawState AState) { . . . if (AState.Contains(gdFixed)) { . . . } . . . etc....
No comments:
Post a Comment