Actually the easiest way to do this is using the Moving() event of the window, as documented in the Window members page in the LBGUI manual. I can still explain how to get the coordinates of the titlebar if you want.
The topleft corner of the titlebar is has of course the same position as the window. Its width equals the width of the window.
To get the height of the titlebar, there are 4 functions LBGUI uses internally which you could use for that. var LBG_window_titlebarheight (LBG_WINDOW* win) var LBG_window_leftborderwidth (LBG_WINDOW* win) var LBG_window_rightborderwidth (LBG_WINDOW* win) var LBG_window_bottomborderheight (LBG_WINDOW* win)
But of course the height depends on the bitmaps you use, and those functions just basically look up their height (but they also check if the window has a titlebar or borders).
But with that information you'd still not exclude the buttons on the titlebar. That's why I recommend using the Moving() event.