windowclass.hCursor

Started by
2 comments, last by mkoday 24 years ago
why is it that when i set windowclass.hCursor to NULL, i get the hourglass cursor displayed?..does this happen to anybody else? email: chickawow@netzero.com
annex software: http://annexsoftware.cjb.net
Advertisement
Well, heres a quote from the MSDN help docs, if it helps:

quote:hCursor

Identifies the class cursor. This member must be a handle of a cursor resource. If this member is NULL, an application must explicitly set the cursor shape whenever the mouse moves into the application’s window.


So in all, it means that the cursor will take the form of whatever it is before it enters the programs window. in your case, its an hourglass, and it stays that way.



Edited by - Zipster on 4/16/00 12:47:56 AM
if you don''t want a cursor to be displayed, just write:
SetCursor(hWnd, NULL);
immediately after you create the window.
Thanks, the SetCursor funtion just takes one param, NULL...I just took at the hWnd, and it worked fine, thanks.

email: chickawow@netzero.com

annex software: http://annexsoftware.cjb.net

This topic is closed to new replies.

Advertisement