I am new to programming, writing a program with a non-standard interface. The window frame in Windows 10 moves as it should, but in Windows 7 a trace remains when you move the left frame to the right.
It’s impossible to bring all the code because of its size, but here are a few lines that are responsible for drawing the window:
SetWindowPos ( HwndGlavOkna, HWND_TOP, KoorGlavOknaX, KoorGlavOknaY, WirinaGlavOkna, VysotaGlavOkna, SWP_NOREDRAW ) InvalidateRect ( HwndGlavOkna, NULL, TRUE ) RedrawWindow ( HwndGlavOkna, NULL, NULL, RDW_INTERNALPAINT ) Tell me, please, what could be the error.
Here is the region drawing code:
case WM_PAINT: hRgn = CreateRoundRectRgn ( 0, 0, WirinaGlavOkna, VysotaGlavOkna, 20, 20 ); if ( hRgn == NULL ) oNeizvOw; if ( SetWindowRgn ( IdGlavOkna, hRgn, TRUE ) == 0 ) oNeizvOw; 
InvalidateRectorInvalidateRgnnot enough? - megaRDW_ERASEflag or its combination withRDW_FRAME(if you draw in the non-client area, in response toWM_NCPAINT). - megaRedrawWindow? - 0Zerro