example of using FXRegionHelper::createPolygon and FXRegionHelper::createEllipse methods

  FXDCWindow dc(someWindow);
  FXPoint poly[5];
  poly[0].x=300;          poly[0].y=230;
  poly[1].x=poly[0].x+30; poly[1].y=poly[0].y+60;
  poly[2].x=poly[0].x-40; poly[2].y=poly[0].y+20;
  poly[3].x=poly[0].x+40; poly[3].y=poly[0].y+20;
  poly[4].x=poly[0].x-30; poly[4].y=poly[0].y+60;
  FXRegion rgn;
  rgn.createPolygon(poly, 5); // by default use RULE_EVEN_ODD fill rule
  dc.drawRegion(rgn); // draw star

  rgn.createPolygon(poly, 5, RULE_WINDING);
  rgn.offset(100, 0);
  dc.drawRegion(rgn); // another star

  FXRegion ellipticRgn;
  ellipticRgn.createEllipse(350, 200, 65, 110);
  ellipticRgn ^= rgn;
  // draw elliptic region with cut star
  dc.drawRegion(ellipticRgn.offset(-300, +20));
