Home > Back-end >  Want to insert an irregular picture in the window as a switch, should how? Pay attention to is irreg
Want to insert an irregular picture in the window as a switch, should how? Pay attention to is irreg

Time:10-06

If inscribe! Know friends trouble told me,

CodePudding user response:

Don't understand what you want

CodePudding user response:

CreateRectRgn, CreateRectRgnIndirect CreateEllipticRgn... Create an area, such as
Then use SetWindowRgn cut a form was the regional shape

For example a button to get into the oval
Var
H: HRGN;
The begin
H:=createellipticrgn,0,80,80 (0);
Setwindowrgn (for the handle, h, true);
.

CodePudding user response:

To round can directly use createroundrectrgn

CodePudding user response:

I'm afraid to your picture

CodePudding user response:

Put the picture up
  • Related