• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 276
  • Last Modified:

256-color Cursors

How can you load a 256-color (or 16-color for that matter) cursor in a C/C++/MFC Windows program? You can create a 256 color cursor in Visual C++'s resource editor but LoadCursor doesn't let you specify which device to load and it apparently doesn't automatically load the 256-color cursor when I'm in Hi-Color video mode. I tried playing around with LookupIconIdFromDirectoryEx() but I didn't get too far with this.
0
Sherwin7
Asked:
Sherwin7
1 Solution
 
chensuCommented:
Try the ::LoadImage() function.
0
 
Sherwin7Author Commented:
::LoadImage() also loads the B&W cursor for me. My work-around was to make separate cursors -- one color and one B&W -- and to select the appropriate one myself.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now