From d719c1e1def21f03c6b540888692277a7744aa24 Mon Sep 17 00:00:00 2001 From: joten Date: Sat, 15 Dec 2012 20:56:18 +0100 Subject: [PATCH] fixed bug: AppBar registration and maximized windows --- src/Bar.ahk | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Bar.ahk b/src/Bar.ahk index bd290ca..2024afb 100644 --- a/src/Bar.ahk +++ b/src/Bar.ahk @@ -169,15 +169,15 @@ Bar_init(m) ;; appBarData: http://msdn2.microsoft.com/en-us/library/ms538008.aspx VarSetCapacity(Bar_appBarData, 36, 0) - offset := NumPut( 36, Bar_appBarData) - offset := NumPut( wndId, offset+0) - offset := NumPut( appBarMsg, offset+0) - offset := NumPut( 1, offset+0) - offset := NumPut( x1, offset+0) - offset := NumPut( y1, offset+0) - offset := NumPut( wndWidth, offset+0) - offset := NumPut(Bar_height, offset+0) - offset := NumPut( 1, offset+0) + offset := NumPut( 36, Bar_appBarData) + offset := NumPut( wndId, offset+0) + offset := NumPut( appBarMsg, offset+0) + offset := NumPut( 1, offset+0) + offset := NumPut( x1, offset+0) + offset := NumPut( y1, offset+0) + offset := NumPut( x1 + wndWidth, offset+0) + offset := NumPut(y1 + Bar_height, offset+0) + offset := NumPut( 1, offset+0) DllCall("Shell32.dll\SHAppBarMessage", "UInt", (ABM_NEW := 0x0) , "UInt", &Bar_appBarData) DllCall("Shell32.dll\SHAppBarMessage", "UInt", (ABM_QUERYPOS := 0x2), "UInt", &Bar_appBarData)