Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Change Cursor

1 view
Skip to first unread message

JoeyB

unread,
Jun 8, 2000, 3:00:00 AM6/8/00
to
How can i change from a standard cursor to a owner drawn cursor, in a
CDialog object?

if have try it witch

::SetCursor( HCURSOR )

but this doesn't work with owner drawn cursors.

Please help me... Thanks... JoeyB

George Lozovoi

unread,
Jun 8, 2000, 3:00:00 AM6/8/00
to
LoadCursor()


JoeyB

unread,
Jun 8, 2000, 3:00:00 AM6/8/00
to
thanks for this, but i already have do it so ->

HCURSOR curFinger = AfxGetApp()->LoadCursor( IDC_FINGER );
::SetCursor( curFinger );

but this does'nt work???

can anybody else help me

George Lozovoi <geo...@datagistics.com> wrote in message
news:uWL$DMV0$GA....@cppssbbsa02.microsoft.com...
> LoadCursor()
>

Johan Rosengren

unread,
Jun 8, 2000, 3:00:00 AM6/8/00
to
JoeyB!

Set a global flag or whatever when you want to change the cursor, add a
handler to WM_SETCURSOR for the relevant window, and use SetCursor there
(based on the value of the flag, of course):

Johan Rosengren
Responsable Informatique
PACTA S.A.

JoeyB <Josef_...@sbu1.storkgroup.com> a écrit dans le message :
um0RqWV0$GA....@cppssbbsa02.microsoft.com...

George Lozovoi

unread,
Jun 8, 2000, 3:00:00 AM6/8/00
to
SetClassLong(hWnd, GCL_HCURSOR, (long)hCursor);

0 new messages