Mindtraveller Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
Please note that U++ is responsible for the window inner contents. The decorations around the window are a subject to control by window manager (U++ has limited set of routines to control it).
I'm afraid there's no portable (window manager - agnostic) way of detecting decoration parameters, that is why U++ doesn't contain methods for detecting them.
So please consult documentation on window manager you use (WinAPI, Gnome, etc.).
Here's a (ugly) workaround that will give you some values:
int WFrameWidth, TitleBarHeight;
WFrameWidth=rw1.left-rw.left; //left-frame thickness
I use it on Linux to get retain exact positioning of topwindows between sessions.
There's a quick flash of the two windows (easily not noticed
Don't know how portable (should be OK)
(MSWindows has built-in functions to get those values, I think, but the code should work even there)