Subject: Re: Togglable toolbars on Win32
From: Paul Rohr (paul@abisource.com)
Date: Sat Mar 17 2001 - 11:57:44 CST
At 06:36 PM 3/17/01 +0100, Mike Nordell wrote:
>Someone decided to not use usual toolbars but to go with "coolbar". This is
>(IMNSHO) a hideous M$ creation to store other "thingies" inside, like
>toolbars and menus. To anyone arguing the "hideous" part I can only say:
>watch the programming interface, and see how many win95 users can't use
>AbiWord without installing Internet Eplorer 4 (or five or whatever it is).
Guilty as charged.  I assumed that potential users of AbiWord on Win32 would 
be familiar with at least two of the following apps, all of which use 
something functionally equivalent to rebars:
  Netscape
  Internet Explorer
  Word
Like it or not, if you don't use something like this, then your app looks 
dated.  I certainly didn't have time to implement something better, so I 
just went with it.  It wasn't all that much code.  ;-)
>I added the (alpha-version code) code to turn on/off the toolbar-"parts" in
>the "coolbar", but I didn't feel like putting the finishing touch on it
>since I detest it myself. My guesstimate is that you'd have to destroy that
>"coolbar" window (HWND) when the last contained item goes away, and then put
>it back when the user wants to display a toolbar. 
That should work, so long as we repack the toplevel container.  AFAIK, the 
packing logic hasn't been factored out yet, but the usual resize trick 
should work. 
>To me it seems insane to
>need to go through all this work to do something as (imaginary) simple as
>this, but this is actually about the only thing I can come to think of
>(perhaps ShowWindow(SW_HIDE) can do the trick, but I won't promise
>anything).
Yeah, that's what I'd try first.  Hide and resize and see if that works.  
Paul
This archive was generated by hypermail 2b25 : Sat Mar 17 2001 - 11:50:34 CST