|
|
I've the vertical scroll bar property checked for an EDIT BOX control, however as more text is written to the box, the EDIT BOX ALWAYS displays the very first line of text, not the last (which I would prefer).
Suggestions much appreciated
Kind Regards
Caoimh
|
|
|
|
|
I dont recal the exact syntax but I believe there is a LineScroll that you can use when text is entered.. something like
m_cEdit.LineScroll(m_cEdit.GetLineCount(), 0);
Anyway this should get you on the right path.
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
How to make ClientEdge at CDialog?
i.e. one line round along client field.
If I set this property at dialog template editor,
line appers also around title bar, but it is unneded,
how to set ClientEdge only around Client area ?
Thanks.
|
|
|
|
|
What you are asking is not a standard option in windows..
The Border is to both the client area and also the nonclient are i.e the title bar and toolbar, menubar if they are present. To have ClientEdge only to client area and another type of border to the window title, you need to custom draw the window.
"When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)
|
|
|
|
|
|
Not that i can think of , sorry.
"When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)
|
|
|
|
|
For more fun:
I have two dialogs,
inherited wrom one immediate paent,
one works as needed but second is not.
Installation code is simple,
(I have all code).
|
|
|
|
|
well, i cant give you a solution for this.
Any way check wheather the initialization is failing or not for the second dialog.
"When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)
|
|
|
|
|
I am trying to get a int varibale into a char variable. any help here?
int temp = 20;
char *demo = (char) temp;
|
|
|
|
|
int temp =20;
char demo =(char) temp; // failed if temp > 128
|
|
|
|
|
Failed if temp >128?
what does it mean the addressing or the value?
|
|
|
|
|
elvis8900 wrote:
what does it mean the addressing or the value?
I believe it's the value.
(signed) char holds number from -127 to 128, due to its nature of 8-bit capacity (2^8).
|
|
|
|
|
-128 to 127.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
As a signed char is a 1 byte value (Range: -128 to 127), it can be used to hold values only within the range. The most significant bit (MSB) of the char variable is used to denote a negative or a positive value stored in it. If the MSB is ON (1), it means a negative value stored in the 7 bits remaining.
An unsigned char , on the other hand, can hold values ranging from 0 to 255.
An int is a 2 byte value (N.B.: In a 32-bit platform, it is a 4-byte value). Whichever way, if you're trying to store an int in a char variable, it will ONLY store the first byte (because char can only have a byte).
That means, if:
int n = 50;
char c = (char) n;
But, if:
int n = 300;
char c = (char) n; I hope this explains in detail.
Nirav
* Don't wish it was easier, wish you were better! *
|
|
|
|
|
Hello everyone.....
Could someone help me to find a suitable book for memory handling in MS Visual C++? I'm also interested about I/O handling.
Thx,
(w)
|
|
|
|
|
wallyka wrote:
find a suitable book for memory handling
Do you have a specific project in mind? Will you need to handle a lot of memory (> 1 GB)?
John
|
|
|
|
|
An excellent book I would recommend to have, is:
* Programming Applications for Microsoft Windows
- By Jeffrey Richter
- Microsoft Press.
* Don't wish it was easier, wish you were better! *
|
|
|
|
|
Hi,
Is it possible like on Unix to have a program dump a file with a stack trace for ease of debugging? If so, how? Thanks.
|
|
|
|
|
Yeah visual studio also has something like it. When you are debuging a application and you come with an exception, you click on retry and select debug/view/stack
"When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)
|
|
|
|
|
Is there a Visual .NET 2003 equivalent of the .bsc file found in Visual C++ ver 6?
I am the handsome one in the crowd.
|
|
|
|
|
I'm a VB developer and i'm making a software that use a multiport video capture card.
I need to use directshow in order to select the video composite-in. I know i need to use the crossbar filter but i'm a novice in c++ programing.
Please help me to resolve my problem.
Thanks
|
|
|
|
|
Who can explain :
char *m="az";
cout << m << endl;
i=0;
cout << m[i++] << m[i++] << endl ;
i=0;
((cout.operator<<(m[i++])).operator <<( m[i++])).operator <<(endl) ;
Gives (Visual C++) 6.0 :
az
za
za
Thanks .
|
|
|
|
|
Using more than one ++ or -- operator on anything but a line by themselves is always risky. Looking at the statement:
cout << m[i++] << m[i++] << endl; the i++ statement gets executed first, and that value (1) is used with the [] operator.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
sorry but the value of i used by the [] operator will be 0 ...
I think you're confused whith ++i ...
|
|
|
|