I have written an application which changes the cursor depending on its position within the window client area. However I have noticed that when I click on the left mouse button the cursor changes back to default arrow icon.
I have overridden the afx_msg void CWnd::OnLButtonDown()
and do not call any of the base class function in it (it's completely empty).
Any idea what might cause CDialogEx
to change the cursor back? What handles the the left click message?
Usually, you need to override
OnSetCursor()
, and there, if the mouse is in a place where you want a specific cursor, you callSetCursor()
and returnTRUE
so thatDefWindowProc
doesn't reset it back to the default arrow.