For Programmers: Free Programming Magazines  


Home > Archive > VC Language > January 2006 > Need Wait Cursor (IDC_WAIT) after thread complete or within thread process.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Need Wait Cursor (IDC_WAIT) after thread complete or within thread process.
nitesh.nema@gmail.com

2006-01-31, 8:00 am

In my application (in ATL/COM) for doing some lenghty processing i have
created thread.This lenghty process starts with the some dialog box
event OnOk(), that dialog box is appearing on the MDI form .
I want to notify user that process is yet to be completed by showing
wait cursor (IDC_WAIT).
For that i have used these efforts:-

1.I have simpliy used :-
HCURSOR hCursor;
hCursor = AfxGetApp()->LoadStandardCursor( IDC_WAIT );
::SetCursor( hCursor );
or
::SetCursor(::LoadCursor(NULL,IDC_WAIT))
;
but could not able to solved the problem.

2.Secondly i called called UI event by internally advising thread to
Notify some events that are declared in my IDL. In that i can get
WaitCursor for partially.

3.I am trying to use AfxGetApp()->RestoreWaitCursor(); and other
function of that ,since in application we haven`t use MFC , so this
code is run fine but could not work .

I have refer
http://www.codeguru.com/forum/archi...p/t-290461.html
and
http://www.codeproject.com/dialog/p...twaitcursor.asp
but could not got answer.If any one help me please send me your views
and guide me.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com