LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does anyone have an example VI about how to call the animatewindow function in the user32.dll using CLN in Labview?

  I want to call the WinAPI function-animatewindow in user32.dll to produce some special effect when showing or hidding windows, but i don't know how to using this Win API to achieve my purpose?

  Does anyone have an example VI about this application?

  Thanks in advance for your help.

0 Kudos
Message 1 of 2
(2,826 Views)
You have to use the Call Library Function Node to call Windows API functions. The animatewindow function itself has some pretty simple parameters. You first need to get the window handle. There are a set of Windows API Function Utilities (32-bit) for LabVIEW that you can use. In there there is a VI (Get Window Refnum) that gets the window handle. It's a simple call to a Windows API function. You would call the animatewindow function in the same way. In this case there are 3 parameters: the window handle (returned by a FindWindow API call), a DWORD (32-bit integer) for the duration, and another DWORD for the flags.
0 Kudos
Message 2 of 2
(2,814 Views)