Windows taskbar

BlitzMax Forums/BlitzMax Beginners Area/Windows taskbar

Pierrou(Posted 2010) [#1]
Hello,

The new Desktop functions in Blitz 1.39 are wonderfully useful and easy to use...

Do someone know a (simple) way to also get the height of the Windows taskbar (and/or cherry on the cake of the MacOS menu bar)?

Thanks in advance,
Pierre


Zeke(Posted 2010) [#2]
Windows taskbar width+height:
SuperStrict

Const ABM_GETTASKBARPOS:Int = $5

Type APPBARDATA
	Field cbSize:Int
	Field hwnd:Int
	Field uCallbackMessage:Int
	Field uEdge:Int
	
	Field _left:Int 'RECT
	Field _top:Int
	Field _right:Int
	Field _bottom:Int

	Field lParam:Int
End Type

Extern "win32"
	Function SHAppBarMessage:Int(dwMessage:Int , pData:Byte Ptr)
End Extern

Local a:APPBARDATA=New APPBARDATA

SHAppBarMessage(ABM_GETTASKBARPOS , a)

Print "Width: " + (a._right - a._left)
Print "Height: " + (a._bottom - a._top)



Pierrou(Posted 2010) [#3]
Blitzmax itself is great, but the Blitzmax community is at least as great!
Thank you!!


Pierrou(Posted 2010) [#4]
And, by the way, is it also possible to get the height of the windows titlebars? (thank you)