Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!emory!hubcap!ncrcae!ncr-sd!iss-rb!booboo!davel From: davel@booboo.SanDiego.NCR.COM (David Lord) Newsgroups: comp.windows.ms.programmer Subject: Re: How does one change the arrow cursor permanently? Message-ID: <1991Apr19.162342.29839@SanDiego.NCR.COM> Date: 19 Apr 91 16:23:42 GMT References: <1991Apr17.160822.8084@agate.berkeley.edu> <14147@adobe.UUCP> Sender: @SanDiego.NCR.COM Reply-To: davel@booboo.SanDiego.NCR.COM (David Lord) Organization: NCR Corporation, Rancho Bernardo Lines: 25 (Mark Epperson) writes: > (Paul Magid) writes: >> >> I have been able to change the cursor for a split second but >>then it changes back to normal. How does one make the change permanent I am >>sick of the arrow cursor? >> > >This is the correct way to do it: > > if (hWnd) > SetClassWord(hWnd, GCW_HCURSOR, hCursor); > SetCursor(hCursor); Ah, just what I wanted to ask about. I thought it would be cute to have a custom cursor show up in my About Box (a modeless dialog box) so I used SetClassWord to do it. Worked great until I noticed that I had changed the cursor for EVERY dialog box in the system. Notice that even though you are calling it with a window handle of a specific window you are actually changing the CLASS (in this case all dialog boxes). So how do I do it without affecting everyone else? Dave.Lord@SanDiego.NCR.COM