MultiMedia Soft forum

MultiMedia Soft products => User interface components => Topic started by: malikite8008 on July 24, 2015, 02:50:22 PM

Title: outlines of buttons appearing after hiding them
Post by: malikite8008 on July 24, 2015, 02:50:22 PM
when i hide or show a button via

button.ShowWindow (SW_SHOW);
button.ShowWindow (SW_Hide);

I get the outlines of the buttons appearing over my background image despite them being hidden, the environment I'm using is vc6,
I've tried changing the antialising, and the transparency but nothing seems to work, here is an image of it happening

in the example the background is black for clarity but in my application the background is an image

Title: Re: outlines of buttons appearing after hiding them
Post by: Administrator on July 24, 2015, 07:27:54 PM
Hello,

this appears to be an issue of the container not refreshing automatically when the button is hidden: we would suggest to force a refresh of the container when one of the buttons is hidden. In order to perform a refresh it should be enough to obtain the hWnd of the container window and to invoke the combination of InvalidateRect and UpdateWindow functions on that hWnd. If this shouldn't be enough, please, attach a sample project reproducing the issue and we will check it.

Kind Regards

Severino Delaurenti
MultiMedia Soft