How do I get window height minus takbar height

Windows specific forum
User avatar
chi
Addict
Addict
Posts: 1087
Joined: Sat May 05, 2007 5:31 pm
Location: Austria

Re: How do I get window height minus takbar height

Post by chi »

#PB_Window_MaximizeGadget (#WS_MAXIMIZEBOX) needs #PB_Window_SizeGadget (#WS_SIZEBOX) to work properly when maximizing a window... or it'll occupy the the whole screen (incl. taskbar)!

Code: Select all

OpenWindow(0, 0, 0, 640, 400, "", #PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_MaximizeGadget|#PB_Window_SizeGadget|#PB_Window_ScreenCentered)
While WaitWindowEvent() ! #PB_Event_CloseWindow : Wend
Et cetera is my worst enemy
Post Reply