Archive: Control not redrawn after SetWindowPos/MoveWindow


Control not redrawn after SetWindowPos/MoveWindow
Hi.

I am trying to move the install button.
The two following commands does move/resize the button, but it is not redrawn afterwards.


GetDlgItem $0 $HWNDPARENT 1

System::Call "User32::SetWindowPos(i, i, i, i, i, i, i) b ($0, 0, 530, 370, 97, 23, WHATEVER_FLAGS)"

System::Call "User32::MoveWindow(i, i, i, i, i, i) b ($0, 0, 0, 50, 50, TRUE)"


The only way I can get it to reappear is to give it focus using the tab button. Once it gains focus it is redrawn.

What am I missing here?

Thanks.

after MoveWindow

System::Call "user32::InvalidateRect(i,i,i)i ($0, 0, 1)"


It's not working... Still same response.


Sorry that was my fault.
This was for update labels etc.

Try this instead:
showWindow $0 0
showWindow $0 1