LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Differences between a window created by CreateWindow command from windows API and by CVI User Interface

May I ask what is the major differences between a window created by CreateWindow command from windows API and one by CVI User Interface.

Can i use this createwindow command from API and then use the GetRelativeMouse with reference to this window?

Thanks

william
0 Kudos
Message 1 of 2
(3,098 Views)
CVI has its own API for User Interface development. It is based on the Windows API, but has richer features and is generally considered easier to program. If you have a CVI panel and want to call WINAPI calls on it, you can get the system handle of the CVI panel with GetPanelAttribute. However, what you are asking is can I use CVI functions on windows created with SDK functions like CreateWindow. The answer is no. However, you should be able to find equivalent functionality in the Windows SDK to do almost everything CVI does in a window created with CreateWindow. In your case, try looking at GetMouseMovePointsEx in the Windows SDK to get the mouse coordinates.

Best Regards,

Chris Matthews
National Instruments
Message 2 of 2
(3,098 Views)