Sign in to follow this  
Followers 0
nf67

[Win 7] shadow is not being displayed properly

3 posts in this topic

When using WinMove() to resize a window the shadow of that window isn't properly displayed after it's been resized.

When resizing it manually there's no problem, obviously.

Here's a comparison:

Posted Image

Notice the little grey corner and the fact that the shadow is missing.

Also, after dragging it the window snaps back to its original size and shadow's fine again.

Is there a fix for this?

Thanks in advance :(

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Try

$handle = WinGetHandle(needed window, "")
Redraw($handle)
Func Redraw($handle)
        DllCall("user32.dll", "long", "SendMessage", "hwnd", $handle, "int", 0x111, "int", 28931, "int", 0)
EndFunc

after resizing

Edited by Godless

_____________________________________________________________________________

Share this post


Link to post
Share on other sites

Would you mind explaining this code :-)?

I'll see if it works in a sec, thanks for your reply!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0