Http://topic.csdn.net/t/20050203/09/3772401.html
In dephi, there are exclude and include functions. What should I use in BCB? In BCB, I want to add or delete an attribute for an options item. I know this can be implemented in the following way: stringgrid-> Options = tgridoptions ()> gofixedvertline, gofixedhorzline, govertline, gohorzline, gorangeselect, gorowselect; stringgrid-> Options = tgridoptions () <average, minimum, govertline, gohorzline, gorangeselect, goediting, include function? Best to giveCode, You can add points if not enough!>
This should be the case.
Stringgrid-> Options = stringgrid-> Options>
Gofixedvertline> gofixedhorzline> govertline>
Gohorzline> gorangeselect> gorowselect;
Stringgrid-> Options = tgridoptions () <gofixedvertline <
<Gofixedhorzline <govertline <gohorzline <
<Gorangeselect <goediting;
>
The C ++ syntax is different from the Delphi syntax.
--------------------------------------------------
I found this evening in the example of gifimage2.2 \ gifimage \ demo \ Explorer.
--------------------------------------------------
If (fn. lowercase (). pos (". GIF")> 1)
{
Try
{
// Gifimagedefadradrawoptions. Operator + [godirectdraw];
// Include (gifimagedefadradrawoptions, godirectdraw );
Gifimagedefadradrawoptions <godirectdraw; // note the odd way of writing the corresponding Delphi include () function.
// Delete the original
If (mainmap_gif-> picture-> graphic! = NULL)
{< br> (tgifimage *) mainmap_gif-> picture-> graphic)-> clear ();
// eliminate flickering
(tgifimage *) mainmap_gif-> picture-> graphic)-> drawoptions = gifimagedefadradrawoptions;
}
Mainmap_gif-> picture-> loadfromfile (FN );
Mainmap_gif-> show ();
Return;
}
Catch (...)
{
}
}