500 pts: Hour glass cursor with MS VC++

Posted on 2009-12-28
Last Modified: 2013-12-14
Hi Experts,

I have written a VC++ application. In this, I am minimizing the application to one tray icon. After right clicking on the tray icon, I am getting one menu. Till this point, everything works well. Later my cursor is getting changed to Hour glass cursor automatically  and it doesn't go away.  I can still use my other menus and type in information but I would like the pointer not the hour glass.  Was there some switch or setting I accidentally changed?  I'm hoping this is an easy one.

How to solve this in VC++ code?


Question by:yogithite
    LVL 26

    Expert Comment

    its highly probably that you set the cursor to the hourglass and misplaced or forgotten to reset it to normal state.. Check the code part that you click on the menu and call some process... be sure that the cursor is returning to the default state immediately after the menu event done...
    LVL 51

    Accepted Solution

    check your code for these:

    CWaitCursor wait;
    wait.Restore ();


    Author Comment

    Hi HainKurt

    I searched my code, but anywhere I couldnot find anything which included 'Cursor' in it apart from this:

    // The system calls this to obtain the cursor to display while the user drags
    //  the minimized window.
    HCURSOR CMailserverDlg::OnQueryDragIcon()
          return (HCURSOR) m_hIcon;


    Author Closing Comment


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    WinWaitActive parameters 12 31
    Window placement 17 56
    fix34  challenge 9 73
    Sed question 2 28
    Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa‚Ķ
    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now