Set the Class Cursor

To set the class cursor, you need to modify a statement in the initialization function. Specifically, you need to assign the cursor handle to the hCursor field of the window-class structure. Make the following change in the C-language source file. Find this line:

wc.hCursor = LoadCursor(NULL, IDC_ARROW);

Change it to the following:

wc.hCursor = LoadCursor(hInstance, “bullseye”);