.data
fullrect RECT <0,0,400,300>

.code
DrawProc	proc uses ebx esi

	invoke	GetStockObject, WHITE_BRUSH
	invoke	FillRect, hBackDC, ADDR fullrect, eax
	
     ; Thru a while loop start at the first object and first each to a new position
     ; via the move method, and then have them re-drawn on the dc.
	xor		ebx, ebx
	.WHILE	ebx < MAX_SMILIES
	     
	     ; Get the object handle 
		mov		esi, dword ptr [offset SmileyArray + 4 * ebx]
		
          ; Move this object to a new position
		method	esi, CSprite, move
		
          ; Redraw the sprite
		method	esi, CSprite, draw
		
          ; Next object..
		inc		ebx
	.ENDW
ret
DrawProc	endp
