--- In [email protected], "swzoh" <[EMAIL PROTECTED]> wrote:
> BTW, it's supposed to be executed only once as it's not a toggle one,
> it might cause an unexpected result if applied repeatedly. If you want
> to restore the original state from the fullscreen, just change - to +
> (0x00C40000).
I rewrote it as sort of a toggle one. Although genuine toggling would
require bit-wise operations, the following (incomplete) one does the
job well in normal (expected) cases, well at least for me:
local hWnd=Win.Handle("active")
local style=dll.call("GetWindowLong|hWnd Int Long",hWnd,"4294967280")
local
toggle=ifelse(select(fill("000000",select(win.hex(style),-6)),1)<"c","+","-")
dll.call("SetWindowLong|hWnd Int Long
Long",hWnd,"4294967280",eval(style++toggle++0x00C40000))
if(toggle=="-")do
Win.Maximize(hWnd)
else
Win.Restore(hWnd)
endif
quit
Sean
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/