HasRgn example for C++ Builder

if (Lead1->HasRgn)
   Edit1->Text = "Bitmap Has Region";