fixed bug: AppBar registration and maximized windows
This commit is contained in:
parent
321112bcff
commit
d719c1e1de
1 changed files with 9 additions and 9 deletions
18
src/Bar.ahk
18
src/Bar.ahk
|
@ -169,15 +169,15 @@ Bar_init(m)
|
||||||
|
|
||||||
;; appBarData: http://msdn2.microsoft.com/en-us/library/ms538008.aspx
|
;; appBarData: http://msdn2.microsoft.com/en-us/library/ms538008.aspx
|
||||||
VarSetCapacity(Bar_appBarData, 36, 0)
|
VarSetCapacity(Bar_appBarData, 36, 0)
|
||||||
offset := NumPut( 36, Bar_appBarData)
|
offset := NumPut( 36, Bar_appBarData)
|
||||||
offset := NumPut( wndId, offset+0)
|
offset := NumPut( wndId, offset+0)
|
||||||
offset := NumPut( appBarMsg, offset+0)
|
offset := NumPut( appBarMsg, offset+0)
|
||||||
offset := NumPut( 1, offset+0)
|
offset := NumPut( 1, offset+0)
|
||||||
offset := NumPut( x1, offset+0)
|
offset := NumPut( x1, offset+0)
|
||||||
offset := NumPut( y1, offset+0)
|
offset := NumPut( y1, offset+0)
|
||||||
offset := NumPut( wndWidth, offset+0)
|
offset := NumPut( x1 + wndWidth, offset+0)
|
||||||
offset := NumPut(Bar_height, offset+0)
|
offset := NumPut(y1 + Bar_height, offset+0)
|
||||||
offset := NumPut( 1, offset+0)
|
offset := NumPut( 1, offset+0)
|
||||||
|
|
||||||
DllCall("Shell32.dll\SHAppBarMessage", "UInt", (ABM_NEW := 0x0) , "UInt", &Bar_appBarData)
|
DllCall("Shell32.dll\SHAppBarMessage", "UInt", (ABM_NEW := 0x0) , "UInt", &Bar_appBarData)
|
||||||
DllCall("Shell32.dll\SHAppBarMessage", "UInt", (ABM_QUERYPOS := 0x2), "UInt", &Bar_appBarData)
|
DllCall("Shell32.dll\SHAppBarMessage", "UInt", (ABM_QUERYPOS := 0x2), "UInt", &Bar_appBarData)
|
||||||
|
|
Loading…
Reference in a new issue