Set Wnw = ActiveWindow: Set Pan = Wnw.ActivePane
If Intersect(Pan.VisibleRange, Obj) Is Nothing Then
For P = 1 To Wnw.Panes.Count: Set Pan = Wnw.Panes(P)
If Not Intersect(Pan.VisibleRange, Obj) Is Nothing Then Exit For
Next P
If P > Wnw.Panes.Count Then Exit Sub ' Abandon si la plage n'est visible nulle part.
End If
Px72 = GetDeviceCaps(GetDC(0), 88) ' Nombre de pixels pour 72 points.
Lft = Obj.Left: Trnq = Int(Lft / 3) * 3
Lft = Pan.PointsToScreenPixelsX(Trnq) * 72 / Px72 + (Lft - Trnq)
Px72 = GetDeviceCaps(GetDC(0), 90) ' Nombre de pixels pour 72 points.
Top = Obj.Top: Trnq = Int(Top / 3) * 3
Top = Pan.PointsToScreenPixelsY(Trnq) * 72 / Px72 + (Top - Trnq)
K = Wnw.Zoom / 100: Rgt = Lft + Obj.Width * K: Bot = Top + Obj.Height * K