PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Roger Garstang on August 12, 2010, 09:46:01 PM

Title: Simple Statusbars
Post by: Roger Garstang on August 12, 2010, 09:46:01 PM
I made an app with a Simple statusbar today that I hadn't done in a while...usually multi-part or not at all.  The part in setting text by setting it to a part of 255 assuming to be a Simple type came back to haunt me again.  Appears it really has to be 0.  This got me looking again and it is confusing how they specify this.  They say LoWrd and HiWrd, but it appears everyone is using OR to join them making it really only use a WORD and waste the upper 16bits.  They also appear to lie in saying it "assumes" it is simple by specifying 255 because nothing is assumed. Unless you use SendMessage(HWND_WEDGIE_STATUSBAR, %SB_SIMPLE, 1, 0) to tell it you are using a Simple type then 255 does nothing. I don't see a way of setting this as a style either which is dumb.

So, do we make FF generate the line if Simple is selected or is everyone just using 0 to specify the simple text?
Title: Re: Simple Statusbars
Post by: Rolf Brandt on August 13, 2010, 02:23:00 AM
I ran into the same problem a while ago. Since then I am simply using zero. See also this thread:

http://www.planetsquires.com/protect/forum/index.php?topic=2488.msg19035#msg19035
Title: Re: Simple Statusbars
Post by: Roger Garstang on August 13, 2010, 09:35:30 AM
Man my memory is going. 4 months ago and I already forgot I posted the same comment.  At least I confirmed my thoughts...does that count as a 2nd opinion?
Title: Re: Simple Statusbars
Post by: José Roca on August 13, 2010, 01:48:34 PM
 
Passing %SB_SIMPLEID (or &H00FF or 255) will work if you don't use visual styles, but will fail if you use them. You can check it by not including a manifest in your resource file.