how to add animation CWaitCursor
-
During long search operation in MFC applicaton how to add animation CWaitCursor
-
During long search operation in MFC applicaton how to add animation CWaitCursor
Everything is clearly explained (with an example and everything) in the documentation[^]. Basically, you just create an instance of the class at the begining of your lenghty function and it will be destroyed when the function exits.
Cédric Moonen Software developer
Charting control [v2.0] OpenGL game tutorial in C++ -
Everything is clearly explained (with an example and everything) in the documentation[^]. Basically, you just create an instance of the class at the begining of your lenghty function and it will be destroyed when the function exits.
Cédric Moonen Software developer
Charting control [v2.0] OpenGL game tutorial in C++Yes true, But I dont want the normal hour glass, but instead I need some other animation, so...
-
Yes true, But I dont want the normal hour glass, but instead I need some other animation, so...
ptr_Electron wrote:
Yes true, But I dont want the normal hour glass, but instead I need some other animation, so...
If you've globally set an animated wait cursor then I guess that will be displayed instead of the hour glass. Also you can try
LoadCursorFromFile
.Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com
-
Yes true, But I dont want the normal hour glass, but instead I need some other animation, so...
Can you respond to the
WM_SETCURSOR
message?"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
-
Can you respond to the
WM_SETCURSOR
message?"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
I wrote this code in the button click event, but no change in the run time I get normal pointer cursor. please advice, I want to display animated cursor.
HCURSOR hcur;
hcur = ::LoadCursorFromFile((LPCWSTR)"C:\\eglobe.ani");
::SetSystemCursor(hcur,OCR_NORMAL);when I add watch for "hcur" it is null and unused
modified on Tuesday, May 26, 2009 5:36 AM
-
I wrote this code in the button click event, but no change in the run time I get normal pointer cursor. please advice, I want to display animated cursor.
HCURSOR hcur;
hcur = ::LoadCursorFromFile((LPCWSTR)"C:\\eglobe.ani");
::SetSystemCursor(hcur,OCR_NORMAL);when I add watch for "hcur" it is null and unused
modified on Tuesday, May 26, 2009 5:36 AM
Does
hcur
have global scope?"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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