Force redraw of window

Started by
1 comment, last by Gammastrahler 20 years, 10 months ago
Hi, i want to create a window and place it centered on the screen. To do this, i temporarily hide it, call MoveWindow, and then show it again. The problem is, the contents are not redrawn after showing it again. I call UpdateWindow() after reshowing the window. can someone give me a hint? thanks Gammastrahler [edited by - Gammastrahler on June 3, 2003 4:43:28 PM]
Advertisement
Do an InvalidateRect() on the window, before the UpdateWindow() call.


[edited by - Dave Hunt on June 3, 2003 5:06:26 PM]
i have working it now!!

but InvalidateRect actually didn´t fix the problem

ehm, removing UpdateWindow() fixed it! though this confuses me...

This topic is closed to new replies.

Advertisement