Specifying a Class Cursor

The “class cursor” defines the shape the cursor will take when it enters the client area of a window that belongs to that window class. To specify a class cursor, load the cursor you want, and assign its handle to the hCursor field of the window-class structure before registering the class. For example, to use the built-in arrow cursor (IDC_ARROW) in your window, add the following statement to your initialization function:

wc.hCursor = LoadCursor(NULL, IDC_ARROW);

For each window created using this class, the built-in arrow cursor will appear automatically when the user moves the cursor into the window.