Jump to content

Recommended Posts

Posted

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 :(

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

_____________________________________________________________________________

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...