Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I change the cursor shape when the mouse moves over a child (or client) window?

0
Posted

How can I change the cursor shape when the mouse moves over a child (or client) window?

0

A. You will want to handle the OnSetCursor function for the view or dialog class that you want to control. You can add this function by going to class wizard, and adding a message map for WM_SETCURSOR. You will be given a function called OnSetCursor. The following code demonstrates how to test for the mouse over a child window (The OK button in our example), or just a specific client region (the upper left corner, in our example).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123