LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Opacity window with CVI6.0 in WindowsXP

Hi,
 
I would like to create an application with opacity window.
I tried to use
hwnd = (HWND) GetCVIWindowHandle(); 
SetWindowLong(hwnd,GWL_EXSTYLE,WS_EX_LAYERED);
SetLayeredWindowAttributes(hwnd, 0, 70, LWA_ALPHA);
Windows SDK commands. They were returned with a positive answer, but nothing happened on the screen.
What is the way to use the mentioned commands?
Does anybody have any sample code?
 
Thansk for the help!
(WindowsXP,CVI6.0)
0 Kudos
Message 1 of 3
(3,302 Views)

Hello Raybie,

instead of

hwnd = (HWND) GetCVIWindowHandle(); 

use

GetPanelAttribute (panel, ATTR_SYSTEM_WINDOW_HANDLE, (int *)&hwnd);

Message 2 of 3
(3,297 Views)

It works!

Thanks!

0 Kudos
Message 3 of 3
(3,294 Views)