How does FireFly do that?

Started by Philipp Emanuel Weidmann, March 03, 2006, 12:39:59 PM

Previous topic - Next topic

Philipp Emanuel Weidmann

Paul,

I have a pretty strange question about a thing that I see in FireFly all the time and that I've been unable to figure out:

The workspace window can be highlighted (active title bar) at the same time as the main window. How the **** does that work? I looked at the window styles and Spy++ shows me a simple tool window. I copied all the styles and created an arrangement similar to yours but my program still can have just one highlighted window at a time.

I would really appreciate if you told me the "secret", or I'm afraid I'll start ripping my hair out in frustration.

Thank you,
Philipp

TechSupport

Magic.....

     Case %WM_NCACTIVATE
        ' ensure that the caption bar retains its active state. This looks
        ' better than having it lose and gain active colors.
        Function = %TRUE
        Exit Function

Philipp Emanuel Weidmann

Magic indeed!

I had never seen this trick before. Thanks a bunch!

Philipp

Roger Garstang

Cool!  Eat the Activate change.  I've used that for Topmost fixes, but never would have thought of that one.