Prevent MFC application to change cursor back to default icon

前端 未结 1 597
我在风中等你
我在风中等你 2021-01-24 21:13

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

1条回答
  •  终归单人心
    2021-01-24 21:42

    Usually, you need to override OnSetCursor(), and there, if the mouse is in a place where you want a specific cursor, you call SetCursor() and return TRUE so that DefWindowProc doesn't reset it back to the default arrow.

    0 讨论(0)
提交回复
热议问题