![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi together, I have a "sliding" form on my desktop which can be expanded or collapsed in a sliding manner. So my problem is, that if the form is collapsing, I want to refresh or invalidate that region on the desktop. I already tried it with something like this: -----> snip [DllImport("user32.dll", SetLastError = true)] public static extern bool InvalidateRect( IntPtr hWnd, ref Rectangle lpRect, bool bErase); [DllImport("user32.dll")] public extern static IntPtr GetDesktopWindow(); // just a rectangle on the whole screen for testing Rectangle invalidateRect = new Rectangle(0,0,1280,1024); InvalidateRect(GetDesktopWindow(), ref invalidateRect, true); ----> snap So InvalidateRect returns with true, but the desktop isn't refreshed. It's really confusing and I spent a long time - but I can't it getting work. What can I do to refresh a rectangle on the desktop??? Kind regards Franz |
#3
| |||
| |||
|
#4
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |