java - reverse SetLayeredWindowAttributes -


i using code sharing screen. have air desktop application(transparent backgound) have created. don't want window shared i.e should not visible client. using setlayeredwindowattributes hide window capture desktop , send image clients , unhide window.

i using setlayeredwindowattributes make window transparent. how reverse i.e make window visible again.

here code

private int gwl_exstyle = -20; private int ws_ex_layered = 0x00080000; private int lwa_alpha = 0x00000002; private int lwa_colorkey = 0x00000001; int winlong = user32extra.instance.getwindowlong(hwnd, gwl_exstyle); user32extra.instance.setwindowlong(hwnd, gwl_exstyle, winlong | ws_ex_layered); user32extra.instance.setwindowpos(hwnd, null, 100, 100, 100, 100,(0x0002) | (0x0001) | (0x0004) | (0x0020)); user32extra.instance.setlayeredwindowattributes(hwnd, null, 128,lwa_alpha); /* code*/ user32extra.instance.setwindowlong(hwnd, winlong & ~ws_ex_layered); user32extra.instance.setwindowpos(hwnd, null, 100, 100, 100, 100,(0x0002) | (0x0001) | (0x0004) | (0x0020)); user32extra.instance.setlayeredwindowattributes(hwnd, null, 128,lwa_alpha); 

what parameters sent make window visible again?


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -