outlines of buttons appearing after hiding them

Started by malikite8008, July 24, 2015, 02:50:22 PM

Previous topic - Next topic

malikite8008

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


Administrator

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