Home > Software engineering >  Image button, how to set the button outside the circle to transparent, normal circle show??
Image button, how to set the button outside the circle to transparent, normal circle show??

Time:12-23



This figure is I find online, assuming that the figure of the outside circle region is white, and how to set the button on the white to transparent color???????

CodePudding user response:

//circle
CRgn rg.
Rg. CreateEllipticRgn (0, 0, CIRCLE_DIA, CIRCLE_DIA );
PBn [m_iBn] - & gt; SetWindowRgn (rg, TRUE);
DeleteObject (rg);