DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Thread: setCursor

  1. #1
    hope Guest

    setCursor


    Hi all,
    I have a window with some member varibles of type HCURSOR hCurs1, hCurs2;
    I load hCurs1 and hCurs2 with different standard icon and try to setCursor
    with different icon whenever I want. but when I set it to hCurs1 and move
    mouse, the icon became hCurs2 by iteself. How can I keep the wanted icon
    until i set it to be a new one?
    Thanks for your help.

    hope

  2. #2
    www.exontrol.com Guest

    Re: setCursor


    "hope" <hua_sun@hotmail.com> wrote:
    >
    >Hi all,
    >I have a window with some member varibles of type HCURSOR hCurs1, hCurs2;
    >I load hCurs1 and hCurs2 with different standard icon and try to setCursor
    >with different icon whenever I want. but when I set it to hCurs1 and move
    >mouse, the icon became hCurs2 by iteself. How can I keep the wanted icon
    >until i set it to be a new one?
    >Thanks for your help.
    >
    >hope

    Handle WM_SETCURSOR message, There you can change the cursor.

    Mike
    www.exontrol.com

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links