Re: [AD] Allegro 4.1.18 WIP RC1

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Mon, 24 Jan 2005 19:45:37 +0100, Daniel Schlyder <daniel@xxxxxxxxxx> wrote:
> Tore Halse:
> > "Whoops, unintended consequence of GetTitleBarInfo, sorry. Patch
> > attached to use GetSystemMetrics instead - it's not quite as reliable
> > (I believe there are a few cases in XP where you can have
> > _differing_ title bar heights between windows), but since its function
> > isn't _critical_ I might as well change it."
> 
> Couldn't we detect if GetTitleBarInfo() is available at runtime and only
> fall back on GetSystemMetrics() when it's not?

I guess we _could_, but it seems like overkill - the difference
between them is basically that GetTitleBarInfo tries to get one
specific window's title bar height while GetSystemMetrics queries the
global setting for title bar heights. And in the (rare, I think) case
of a styled XP window with a higher title bar than the global standard
the function will still fulfill its purpose: having the window
perfectly aligned with the top screen border is of course nice, but
the client area will still be fully within the screen, and more
importantly -  there will be enough of a title bar visible to allow
the user to move the window (which seems to be the only way to move an
Allegro created window - I haven't had any luck with the context menu
Move) if he wants to.

T

-- 
Feed me a stray cat.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/