6.2.1 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. You must specify the class cursor before registering the window class. To do this, load the cursor you want your application to use and assign the cursor's handle to the hCursor member of the window-class structure. 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.