HRGN CreateRoundRectRgn(
int nLeftRect, // x-coordinate of the region's upper-left corner int nTopRect, // y-coordinate of the region's upper-left corner int nRightRect, // x-coordinate of the region's lower-right corner int nBottomRect, // y-coordinate of the region's lower-right corner int nWidthEllipse, // height of ellipse for rounded corners int nHeightEllipse // width of ellipse for rounded corners );
+
int SetWindowRgn(
HWND hWnd, // handle to window whose window region is to be set HRGN hRgn, // handle to region BOOL bRedraw // window redraw flag );
=
Fenêtre de forme irrégulière !
Ex:
HRGN hRgn; hRgn = CreateRoundRectRgn(10,10,100,100,50,50); // J'ai mis les arguments au pifomètre !
SetWindowRgn(hwnd, hRgn, TRUE);
// Et voila tu as une fenêtre avec une forme irrégulière !
// Attention : y'a d'autres fonctions pour définir une région, comme CreateEllipticRgn(... et plein d'autres ! @+
|