hi :!:
est ce c'est possible de construire des skins pour son application?
Version imprimable
hi :!:
est ce c'est possible de construire des skins pour son application?
cela depend de qu'est ce que tu veux faire dans ...
on peut donner un forme à une form en utilisation les regions
dans le Create
tu peux associer les regionsCode:
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);
ici on obtient un rectangle avec les bords arrondis
@+
regarde ces adresses ça doit t'interessé, si j'i bien compris ce que tu veux :wink:
http://www.hwb.com/gruhn/programming...ial/bunny.html
et celle la aussi
:wink:
http://www.flipcode.com/articles/art...n32skins.shtml