<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Lo solucione:</DIV>
<DIV>Para borrar el elemento que muevo con MouseMove</DIV>
<DIV>llamo a UpdateWindow despues de InvalidateRect para que el programa inmediatamente llame a WM_PAINT. ¿Estoy en lo correcto? </DIV>
<DIV> </DIV>
<DIV>    case WM_MOUSEMOVE:<BR>      mousex=LOWORD(lParam);      mousey=HIWORD(lParam);<BR>     </DIV>
<DIV>       //Borrar anterior:<BR>       InvalidateRect(hwnd,&_rect_anterior,false);         <BR>       UpdateWindow(hwnd);<BR>       //<BR>      hdc=GetDC(hwnd);                 <BR>      Objeto(hwnd, mousex+12, mousey+12, hdc, 1);  //Objeto a mover      <BR>      ReleaseDC(hwnd,hdc);<BR>    break;     <BR>    case WM_PAINT:<BR>      hdc=BeginPaint(hwnd,&ps);<BR>      Presenta(hwnd,hdc);   //ESTO COLOCA LA PARTE DEL
 FONDO        <BR>      EndPaint(hwnd,&ps);   <BR>    break;<BR><BR><BR><BR>--- El <B>Lun 4/4/11, Andesbit Cp <I><andesbit@ymail.com></I></B> escribió:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>De: Andesbit Cp <andesbit@ymail.com><BR>Asunto: [C con Clase] InvalidateRect<BR>Para: Cconclase@listas.conclase.net<BR>Fecha: Lunes 4 de Abril de 2011 21:16<BR><BR>
<DIV id=yiv2008071386>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV>He tratado de actualizar parte de la ventana y el programa actualiza toda la ventana</DIV>
<DIV>Uso Dev C++ para windows.</DIV>
<DIV>void Dibujo(HWND hwnd)</DIV>
<DIV>{</DIV>
<DIV>  HDC hdc;</DIV>
<DIV>  GetDC</DIV>
<DIV>  dibujo</DIV>
<DIV>  ReleaseDC</DIV>
<DIV>}</DIV>
<DIV>void dibujar_parte(HWND hwnd)</DIV>
<DIV>{</DIV>
<DIV>  InvalidateRect(hwnd,&rparte,FALSE);</DIV>
<DIV>}</DIV>
<DIV>......</DIV>
<DIV>WM_MOUSEDOWN:</DIV>
<DIV>  dibujar_parte()</DIV>
<DIV>break;</DIV>
<DIV>WM_PAINT:</DIV>
<DIV>BeginPaint();</DIV>
<DIV>Dibujo();</DIV>
<DIV>EndPaint();</DIV>
<DIV>break;</DIV>
<DIV> </DIV>
<DIV>NO SE COMO HACER</DIV></TD></TR></TBODY></TABLE></DIV><BR>-----Sigue archivo adjunto-----<BR><BR>
<DIV class=plainMail>_______________________________________________<BR>Lista de correo Cconclase <A href="http://pe.mc1212.mail.yahoo.com/mc/compose?to=Cconclase@listas.conclase.net" ymailto="mailto:Cconclase@listas.conclase.net">Cconclase@listas.conclase.net</A><BR><A href="http://listas.conclase.net/mailman/listinfo/cconclase_listas.conclase.net" target=_blank>http://listas.conclase.net/mailman/listinfo/cconclase_listas.conclase.net</A><BR>Bajas: <A href="http://listas.conclase.net/index.php?gid=2&mnu=FAQ" target=_blank>http://listas.conclase.net/index.php?gid=2&mnu=FAQ</A></DIV></BLOCKQUOTE></td></tr></table>