Re: detecting style param in createEx

new topic     » goto parent     » topic index » view thread      » older message » newer message

Judith Evans wrote:
> 
> I have an include file that interrogates Style used in createEx in Mainline.
> I use Win32lib's getWindowInfo to grab the style. I want to know if 
> BS_MULTILINE or #8000 (flatbutton)had been added to the default PushButton 
> style. What I do is add the value of BS_MULTILINE or #8000 or both 
> to the value of the default style. If the number is the value getWindowInfo
> 
> returns I know which or if both were added.
> 
> My problem is if another style were added, my technique will fail. Is there
> 
> a better way to do this and if so what?
> 
> regards,
> 

judith:

-- use getWindowInfo to get the style

if and_bits(BS_MULTILINE,style)then
-- do something
end if 

if and_bits(#8000,style)then
-- do something else
end if 

if and_bits(BS_MULTILINE,style) and and_bits(#8000,style) then
-- do something if both
end if 


Bernie

My files in archive:
WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API 

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu