Setting a custom windows cursor inside TGE
by Peter Simard · in Torque Game Engine · 02/24/2007 (11:58 am) · 2 replies
This is a continuation of the discussion in: http://www.garagegames.com/mg/forums/result.thread.php?qt=58369
Anyone know the procedure to reference a custom cursor in a VC application. I have gone through several sites and MSDN and nothing seems to be working.
I added the cursor to the Torque resource package and I am attempting to access it now via MAKEINTRESOURCE()
Any C++ gurus know what I'm doing wrong?
Anyone know the procedure to reference a custom cursor in a VC application. I have gone through several sites and MSDN and nothing seems to be working.
I added the cursor to the Torque resource package and I am attempting to access it now via MAKEINTRESOURCE()
Any C++ gurus know what I'm doing wrong?
#2
What I need to find a way to do is load a custom cursor that is not built into windows.
02/26/2007 (4:50 pm)
Thanks for the response Tim, the problem is we use custom mouse cursors for different things (gears for interaction objects, a sword for attackable target).What I need to find a way to do is load a custom cursor that is not built into windows.
Tim McClarren
Default Studio Name
HANDLE imageHandle = LoadImage(NULL, MAKEINTRESOURCE(OCR_NORMAL), IMAGE_CURSOR, 0, 0, LR_SHARED);
(OCR_NORMAL is defined in winuser.h)
That seems to work just fine in our product.