Static control is not transparent + MFC

We have created a toolbar. there is a static control in the toolbar and we have placed the ab icon image above this static control. the problem is that the static control has its own color and we cannot make it transparent with respect to the browser theme color.

so our icon has some background color when changing browser themes.

0


a source to share


2 answers


Are you considering looking at the WM_CTLCOLOR override in the toolbar to return NULL_BRUSH when painting static controls?



+1


a source


Well deduce your own owner, static control and use the PNG loaded in the CImage to give you a pixel alpha.



Failure to do what you ask using maskblt ... but it's much easier in all its use using ATL and GDI + CImage classes :)

0


a source







All Articles