LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing mouse cursor shape

Hello,
 
using the SetMouseCursor function, it is possible to change the cursor shape into some regular shapes, like the hourglass and the question mark. But how can I turn the shape of my mouse cursor into other shapes? I need some cursor shapes like the ones that appear in Windows Explorer when dragging files, such as the pointer with the little +-sign that marks that the files will be copied, or the 'forbidden' mark to make clear to the user that the cursor is over a location where the files can not be dropped.
 
0 Kudos
Message 1 of 3
(4,187 Views)
Hello Wim,

The cursors that you can set with the SetMouseCursor function are the ones that ship by standard with CVI.
You can however change it into anything that you would like but you need to use the Windows SDK functions to do so. The article in the link below describes how to implement Windows SDK into Labwindows/CVI.

http://digital.ni.com/public.nsf/websearch/4D03093F2079ABDD86256969006E9ECC?OpenDocument

Below are the functions that you will eventually need to implement. They allow you  to load a random cursor file and set your cursor to take that form. The cursors that you plan on using are probably already on your PC ( *.cur files).

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/cursors.asp

Good Luck,
Wouter Van Hoof
National Instruments

Message 2 of 3
(4,164 Views)

Hi Wouter,

Thanks a lot for the info. That should do the trick. I found a lot of *.cur files in my C:\WINDOWS\Cursors directory...

Wim

0 Kudos
Message 3 of 3
(4,136 Views)