I have a layered (semi-transparent window) created with WS_EX_LAYERED and adjusted with SetLayeredWindowAttributes(... LWA_ALPHA). I have to show and hide it from time to time, but since last hide there are cases when the image is going to be changed significally. But SetWindowPos and ShowWindow at first shows the previous image (possibly buffered image from last time) and after that I see new image repainting. What is the best way to invalidate it as though it is going to be shown for the first time (so no drawing of the previous buffered image)
Thanks
Maxn