Código Delphi
[-]
var i:integer;
begin
for i:=0 to mdi.childcount-1 do
with mdi.mdichildren[i] do
begin
Repaint;
end;
El hijo activo siempre es MDI.ActiveMdiChild.
si no hay ventana hija abierta y accedes con Activemdichild, tendrás un bonito violación de acceso a memoria
.
Un saludo