Re: TRect overlap



"Andy" <andy@xxxxxxxxxx> wrote in message
news:43553d49$1@xxxxxxxxxxxxxxxxxxxxxxxxx
> What happens is one Rect is inside the other? Will IntersectRect still
> returns true?

Another way to do it is just check if any points of either rectangle are
inside the other rectangle. Its a very straight forward routine. Then you
can control exactly how it responds in all situations.


.



Relevant Pages

  • Re: Intersecting Polygons
    ... Public Declare Function IntersectRect Lib "user32" Alias "IntersectRect" ... (lpDestRect As RECT, lpSrc1Rect As RECT, lpSrc2Rect As RECT) ... places the coordinates of the intersection rectangle into the destination rectangle. ...
    (microsoft.public.vb.general.discussion)
  • How to draw a rectangle on AxWebBrowser to high light one html element?
    ... Now I can get the rectangle to draw, but it seems the rectangle is not ... The following code is used to draw the rectangle. ... formGraphics.DrawRectangle(pen, rect); ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: TRect overlap
    ... What happens is one Rect is inside the other? ... Andy ... > IntersectRect et al usually do this for you. ... Prev by Date: ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: DrawText fails when attempting to retrieve string extents
    ... "Phil Taylor" wrote in message ... > DT_CALCRECT is filling Right and Bottom to make the rectangle big enough. ... list that will allow the specification of a Rect. ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Mouse movement within CStatic/Picture box
    ... over the picture box, I was wondering if you guys can suggest a method ... where I can refresh the picture box or reset the previous rectangle, ... RECT rect; ... The reason is that the image on a window can be destroyed by other popup windows, and Windows calls OnPaint when you need to fix it. ...
    (microsoft.public.vc.mfc)