LoadCursor

I am playing with the Win32 Functions and I'm just wondering why do you need to pass in NULL, while the paramater is HINSTANCE hInstance

LoadCursor(NULL, IDC_ARROW)
You pass NULL as the instance handle when you want a stock resource from the system, rather than one from a particular module's resource segment.

Andy

To use one of the predefined cursors, the application must set the hInstance parameter to NULL and the lpCursorName parameter to one the following values.

e.g. IDC_ARROW

LoadCursor function
http://msdn.microsoft.com/en-us/library/windows/desktop/ms648391(v=vs.85).aspx
Last edited on
Topic archived. No new replies allowed.