Control.SetStyle - is calling this method cumulative?

  • Thread starter Thread starter Justin Rogers
  • Start date Start date
J

Justin Rogers

Yes it is cumulative. You can set multiple styles at once by or'ing them
together
or make multiple calls in different places to achieve the same result.
 
Does calling the Control.SetStyle method repeatedly with different flag
values have a cumulative effect?? or does it reset the value to the last
flag passed.

I'm wanting to call this from different places, potentially at different
times, and I'm not sure if I have to pass a bitwise set of flags or not
(that is - all values separated by OR).

Thanks everyone.
 
Lovely - thank you Justin.


Justin Rogers said:
Yes it is cumulative. You can set multiple styles at once by or'ing them
together
or make multiple calls in different places to achieve the same result.
 
Back
Top