6.5.3 Setting the Class Cursor

To set the class cursor, modify a statement in the initialization function. Specifically, assign the cursor handle to the hCursor member 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(hinst, "Bullseye");