[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 519
  • Last Modified:

500 pts: Hour glass cursor with MS VC++

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?

Regards,

Y
0
yogithite
Asked:
yogithite
  • 2
1 Solution
 
tigin44Commented:
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...
0
 
HainKurtSr. System AnalystCommented:
check your code for these:

CWaitCursor wait;
wait.Restore ();
SetCursor

BeginWaitCursor
EndWaitCursor
RestoreWaitCursor
0
 
yogithiteAuthor Commented:
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;
}

0
 
yogithiteAuthor Commented:
THANKS.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now