Gentlemen,
Thank you for your assistance with solving my problem. I am now a wiser man.
Based in RASHAD's solution I wrote the following test bed to find what I really wanted
which was "What is the aggregate width of the frame, title and menubar (when prersent)?
I should have asked the right question in the first place!
Code: Select all
; Find Y poition of client area in window with
; border / title / menu
OpenWindow(1,0,0,200,60,"",#PB_Window_BorderLess)
SetWindowColor(1,#Red)
wi.WINDOWINFO\cbSize = SizeOf(wi)
GetWindowInfo_(WindowID(1),wi)
Debug "RED"
Debug wi\cyWindowBorders
Debug wi\rcClient\top - wi\rcWindow\top
OpenWindow(2,0,100,200,60,"",0)
SetWindowColor(2,#Green)
wi.WINDOWINFO\cbSize = SizeOf(wi)
GetWindowInfo_(WindowID(2),wi)
Debug "GREEN"
Debug wi\cyWindowBorders
Debug wi\rcClient\top - wi\rcWindow\top
OpenWindow(3,0,200,200,60,"",#PB_Window_SystemMenu)
SetWindowColor(3,#Blue)
CreateMenu(1,WindowID(3)) : MenuTitle("Fred")
wi.WINDOWINFO\cbSize = SizeOf(wi)
GetWindowInfo_(WindowID(3),wi)
Debug "BLUE"
Debug wi\cyWindowBorders
Debug wi\rcClient\top - wi\rcWindow\top
While WaitWindowEvent() <> #PB_Event_CloseWindow
Wend
Thanks again...
RichardL