|
Use CWaitCursor class.
e.g
void CMyClass::foo()
{
CWaitCursor cursor;
cursor.Restore();
}
|
|
|
|
|
Ignore this answer. It was wrong!
Sorry.
I give myself a 1.
-- modified at 9:26 Friday 15th December, 2006
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
Restore is meant for restoring wait cursor, if its been changed.
Sometime , during lengthy operations, it get changed to some other cursor.
This function restores it back to wait cursor. I think you misinterpreted its functionality.
kakan wrote: So the cursor automaticly gets restored when the CWaitCursor goes out of scope.
, Original cursor gets restored in this case.
|
|
|
|
|
OK, my mistake, I didn't know that. Sorry.
I will remove my post in a couple of minutes (to give you time to read this.)
Kakan
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
kakan wrote: OK, my mistake, I didn't know that. Sorry
Everybody does that, sometime.
|
|
|
|
|
kakan wrote: I give myself a 1.
Come on ! I give you 5 for this.
|
|
|
|
|
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
Hello,
thanks wery much for help! Works.
And i have a next question, sometimes i see applications with rotate hourglass, how do they this,
or placed on an litle dialog, e.g, with message like "wait " and on the same litle dialog is
an rotate hourglass!?
thanks
break;
|
|
|
|
|
break; wrote: And i have a next question, sometimes i see applications with rotate hourglass, how do they this
they created a custom cursor for their application, most likely.
break; wrote: or placed on an litle dialog, e.g, with message like "wait " and on the same litle dialog is
an rotate hourglass!?
that's a 'modeless' cancel dialog. there are examples on CodeProject (look in the MFC / Dialog section).
|
|
|
|
|
Hello,
thanks very much for answer,
hmm, i can make an *.gif image, such as e.g. myhour.gif(animate gif) and
place them on the new litle dialog!? Is that the first way to solve them?
thanks
break;
|
|
|
|
|
I have an image of a classroom. I want to get the position(coordinate) of every desk in it(the color of the desk is different from that of the background).
Are there any good and simple arithmetics to deal with this problem? It doesn't have to be very precise.
Thanks!
|
|
|
|
|
Hi !!!
I have one file called acad.mns(Autocad file which contain toolbar) so how i can load this file in my application..This file will load toolbar in my application.
Thank you very much..
Shah Satish
|
|
|
|
|
Shah Satish wrote: This file will load toolbar in my application.
How ? Can you be clear in what you are saying ?
|
|
|
|
|
Hi,
I cant remember what exactly contain acad.mns but it it's a txt file and if you want to load toolbar straigth from AutoCad basis on it - forget about it - probably mission impossible
-----------
Mila
|
|
|
|
|
How to write an SQL statement to retrive just 3 columns from my table?
In CRecordset::Open(CRecordset::snapshot,"SELECT city FROM data1");
city = column
city1 = column
city2 = column
data1 = table
Database name -> Database_city1
this statement is wrong but i dont now what!
please help me !
Bravoone
|
|
|
|
|
You can declare three columns on Select statement
|
|
|
|
|
"SELECT city,city1,city2 FROM data1"
this is posible?
Bravoone
|
|
|
|
|
Select city,name From Authors
---------
Select * From Authors (I believe its not good because if we have 100,000 records how many time to reads them?)
---------
Select col1 from Authors Where number in('123','000')
---------
Select col1 From authors Where title LIKE '%book%'
|
|
|
|
|
Bravoone_2006 wrote: SELECT city,city1,city2 FROM data1"
this is posible?
yes, if city, city1 and city2 are columns of the table data1 (which is badly named if so).
BTW, your problem is a SQL question, not related to C/C++ at all, so you should have asked the SQL forum
|
|
|
|
|
Or rather, Bravoone should spend an hour with reading chapter one from any SQL book...
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
This is not the problem i read it but all i want is to retrieve 3 columns not all columns from my table but i dont now how ?!
Bravoone
|
|
|
|
|
You already got a number of answers to your question.
What else do you want? Someone to write your entire application for you?
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
Not the entire aplication just answer to my question and if you dont now ...!
just this SELECT statement !!!!!
Bravoone
|
|
|
|
|
kakan wrote: Someone to write your entire application for you?
This has been discussed ad nauseam.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Because the program is in visual c++ ... man ! is so hard to believe that -> CDialog is a class from visual c++ CRecordset is a class from visual c++ ! hoo !
ok CRecordset::Open(CRecordset::snapshot,"SELECT... what? and how?");
i will wait your answer !
Bravoone
|
|
|
|