Border around a form with rounded corner in c++ builder XE
I have made a C++ Builder XE form with rounded corner with the help of the following code BorderStyle = bsNone; void __fastcall TForm1::FormCreate(TObject *Sender) { HRGN frmrgn; frmrgn = CreateRoundRectRgn (0, 0, ClientWidth, ClientHeight,12,12); SetWindowRgn(Handle,frmrgn,true); } It looks cool but the border is missing, I tried many thing but not get good result so please help me to draw border of color RGB(96,96,96) And I want to make whole form dragable. 1. Painting a dark grey border This one's easy, depending on how complex you want the border to look. If you just want an outline in