1 2 3 4 5 6 7 8 9 10 11 12 13
| HRGN WindowRegion, BarRegion ;
WindowRegion = CreateRoundRectRgn( 0, // x-coordinate of the region's upper-left corner
0, // y-coordinate of the region's upper-left corner
this->Width, // x-coordinate of the region's lower-right corner
this->Height, // y-coordinate of the region's lower-right corner
20, // height of ellipse for rounded corners
20); // width of ellipse for rounded corners
//BarRegion = CreateRectRgn(10,0,FormSetup->Width/2,23);
//BarRegion = CreateRoundRectRgn(20,0,this->Width*1/4,30,5,5);
//region2 = CreateEllipticRgn(30,30,200,200);
//CombineRgn(WindowRegion, WindowRegion, BarRegion, RGN_OR);
SetWindowRgn(Handle, WindowRegion, true); |
Partager