mfcc - MFC: Adding fade-in , fade-out effect to polygon region -
i want fade-in, fade-out particular region created me. when use animatewindow() fades out entire window not visible earlier when created polygon region. how do this? can appreciated.
try this: use setlayeredwindowattributes :
for (int opacity = 0; opacity <= 255; opacity++) { ::setlayeredwindowattributes(hwnd, rgb(0,0,0), opacity, lwa_alpha); sleep(20) ; } this fade out hwnd window in approximately 5 seconds. hwnd window must created ws_ex_layered extended style.
Comments
Post a Comment