Changing Cursors
-
I have a window derrived from CWnd which contains a number of rectangular areas. I would like the cursor to change shape when the mouse pointer is within any of the rectangular areas and I wondered if anyone could offer some advice as to what steps I need to take to do this. Thanks :) Tony
-
I have a window derrived from CWnd which contains a number of rectangular areas. I would like the cursor to change shape when the mouse pointer is within any of the rectangular areas and I wondered if anyone could offer some advice as to what steps I need to take to do this. Thanks :) Tony
Override the
CWnd::OnSetCursor()
function. Call the WindowsSetCursor()
function to change the pointer."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
-
Override the
CWnd::OnSetCursor()
function. Call the WindowsSetCursor()
function to change the pointer."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
Thanks David, that worked a treat! :thumbsup: :thumbsup: