Hello,
how can I get the information if a single flag is set or not?
I want to use the non pointer methode.
The online help gives only examples for getting a scalar.
Thanks, Tobi
Hello,
how can I get the information if a single flag is set or not?
I want to use the non pointer methode.
The online help gives only examples for getting a scalar.
Thanks, Tobi
Tobias Moeglich wrote:
Hello,
how can I get the information if a single flag is set or not?
I want to use the non pointer methode.The online help gives only examples for getting a scalar.
Thanks, Tobi
you could do it with simple bit-comparison like:
if(widget->flags & <flag_to_request>)
// flag is set
else
/ flag isn’t set
mirtch <mirtch@gmx.net> wrote:
Tobias Moeglich wrote:
Hello,
how can I get the information if a single flag is set or not?
I want to use the non pointer methode.The online help gives only examples for getting a scalar.
Thanks, Tobi
you could do it with simple bit-comparison like:
if(widget->flags & <flag_to_request>)
// flag is set
else
/ flag isn’t set
Do:
if(PtWidgetFlags(widget) & <flag_to_request>)
//flag is set
else
//flag isn’t set
Do not snoop in the widget structure.