This example compares two rectangles for equality.
#define INCL_WINRECTANGLES /* Window Rectangle Functions */ #include <os2.h> BOOL fEqual; /* equal indicator */ HAB hab; /* anchor-block handle */ RECTL prclRect1 = {0,0,100,100}; /* first rectangle */ RECTL prclRect2 = {0,0,200,200}; /* second rectangle */ fEqual = WinEqualRect(hab, &prclRect1, &prclRect2);