|
With the term page I didn't mean a whole page. Read another time:
1 TotalSize = 10 Pages;
1 Page = 10 Lines;
NOTE: If you dont say anything else this is standard behaviour.
Just a question... why do u set Scroll size bigger than client area?
I.E. One DIN A-4 = 210 * 297 mm (Standard-printable-area 190 * 280 mm)
to have a ratio 5 Pixels : 1 mm in my app I used
CSize sizeTotal;
sizeTotal.cx = 950; sizeTotal.cy = 1400; //190*5 and 280*5
SetScrollSizes(MM_TEXT, sizeTotal);
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
Nelek wrote: Just a question... why do u set Scroll size bigger than client area?
I use bigger scroll size because I'm placing some object's on backplane(MyView) and on my last placing I wont to enlarge my page so I can make place if user wont's to add more objects!
MyView(CFormView) is some kind of help for me because on the end I'm doing some coding (collect positions and relasionships betwen objects and then presenting it as something else....) my stuff, dont want to dother anyone with this...
Thanks everybody for their effort
|
|
|
|
|
Given a char c and an int i,
is there any difference between casting the int to the char: c = (char)i;
and just assigning it: c = i;
many thanks
Tzumer
|
|
|
|
|
Someone already answered that yesterday.
|
|
|
|
|
The result is the same.
However, (depending on the warning level set), in the latter case, i.e.
e.tzumer wrote: just assigning it: c = i;
the compiler may emit the following warning:
conversion from 'int' to 'char', possible loss of data
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
What is wrong with you?
|
|
|
|
|
shoot mike, shoot !
|
|
|
|
|
hehe, I just read the "How to get a variable name" thread.... good grief
Thank goodness wasted processor cycles don't contribute to global warming.... um ... er... they don't do they?
|
|
|
|
|
|
when i use VFW to create avi file, what does keyframe influenc on the file?
|
|
|
|
|
key Frame[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi
How to get a variable name?
I forgot the macro!
thanks
|
|
|
|
|
Hadi Dayvary wrote: How to get a variable name?
Closing your eyes and saying "Abracadabra" will sometimes work. Other than that, you'll need to rephrase your question.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
Hey what happend why you and other members on this thread got 1,maybe I can repair it with 5 vote.;)
|
|
|
|
|
It is something that happens a lot without sense, there should be some user of forum that hate some people here.
On the other hand... Thanks, but I don't care about the votes, I am far away less skilled as many other users so... If I really help someone my best reward is a simple "thanks" from asker.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
DavidCrow wrote: Closing your eyes and saying "Abracadabra" will sometimes work. Other than that, you'll need to rephrase your question.
I found the macro :
#define NAME(VAR) ( CString(#VAR) )
and then you can use it for getting any variable name at runtime:
CString s = NAME(m_sName);
If you don't know something it does not mean that it's not exist!
|
|
|
|
|
Don't you like the double quotes " , do you?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
what the F*ck can you use that for ?!
Hadi Dayvary wrote: and then you can use it for getting any variable name at runtime
but don't you just know the name of the variable you handle when you pass it to the macro ?!
|
|
|
|
|
it could be used for some debugging tracing purpose.
|
|
|
|
|
Maximilien wrote: it could be used for some debugging tracing purpose.
The same way as surrounding double quotes can.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Sure, but the nice thing about it is you can write a single macro that takes one argument
(a variable) and uses both its name and its value, making it easy to dump a lot of variables.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Luc Pattyn wrote: a single macro that takes one argument
(a variable) and uses both its name and its value .
Of course, the above is the trick that makes the difference.
I hope the OP will realize it.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
It seems some body didnt like your answer and you got 1 but I give you 5 because your time that you spent.;)
|
|
|
|
|
you're such a good guy hamid
keep it up
|
|
|
|