|
Wow...! It is working fine. Thank you.
One more question,
Can I guess it without having an EditCtrl. But the font is with me.
What I need is I have to make an static text control to be same as edit ctrl.
Hope you got what I meant.
- NS -
|
|
|
|
|
NS17 wrote: What I need is I have to make an static text control to be same as edit ctrl.
Why do you want to do this? A readonly edit control should suffice!
Nibu thomas
Software Developer
|
|
|
|
|
But I dont need the text caret and text selection.
- NS -
|
|
|
|
|
NS17 wrote: But I dont need the text caret and text selection.
Then CBS_DROPDOWNLIST should be it.
From the docs:
CBS_DROPDOWNLIST: Similar to CBS_DROPDOWN , except that the edit control is replaced by a static-text item that displays the current selection in the list box.
Nibu thomas
Software Developer
|
|
|
|
|
Exactly pal...
But the problem they are not the same.
- NS -
|
|
|
|
|
NS17 wrote: But the problem they are not the same.
Why do you think they are not the same? It what way do they differ!
Nibu thomas
Software Developer
|
|
|
|
|
Just a simple example can show the difference. If we place two ComboBoxes, one CBS_DROPDOWN and other CBS_DROPDOWNLIST, and the font to be Arial 14, we can see the difference in margin.
- NS -
|
|
|
|
|
NS17 wrote: If we place two ComboBoxes, one CBS_DROPDOWN and other CBS_DROPDOWNLIST, and the font to be Arial 14, we can see the difference in margin.
I am still confused as to what you want to achieve? Lol.
Nibu thomas
Software Developer
|
|
|
|
|
I have created a custom combo box from CComboBox. It should fully ownerdrawn. So I have to make all colors configurable. For DropDown ComboBox there is no problem yet. But in DropList this is not the case. When this combo is disabled the colors cannot be configured. So I put a static text control above the text area of that combo as child programatically. Now I need to give a margin in the left side.
- NS -
|
|
|
|
|
NS17 wrote: So I put a static text control above the text area of that combo as child programatically. Now I need to give a margin in the left side.
Instead of putting another static control why don't you use the existing one!
Nibu thomas
Software Developer
|
|
|
|
|
Actually there is not such a one. ComboBox is painting the text itself.
- NS -
|
|
|
|
|
Does vc++ allow nested comment as in Boraland
any compiler option for that.
/*some comment
/*second line*/
*/
------------------------------
Its not the fall that kills you; it's the
sudden stop at the end.
|
|
|
|
|
the C++ language specification tells that:
- every comment that begins with // will end and the end of the line it was found, unless the last character on the line is \ ; in this case, the comment continues on the next line.
- every comment that begins with /* will end at the first occurence of the sequence */ .
so, the only nested comments allowed are the following :
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
NS17 wrote: Yes, it supports.
No compiler options are needed for that.
Are you sure?[^]
Nibu thomas
Software Developer
|
|
|
|
|
Yes, you are right.
I will delete my answer.
- NS -
|
|
|
|
|
Hi,
while Loading my project in visual studio 6 Iam getting two dialog boxes with OK button.
The first box telling that,
"Lines ending with only a carriage return have been detected. These will be modified to include a line feed"
And second Dialog box Showing a message of,
" This file contains invalid charracters that will be converted to ' . 's. "
What might be the Reason ?
|
|
|
|
|
check the input output strings in your program.
|
|
|
|
|
This is a very big project , and it is compiling and executing with no errors.
It is in maintenance phase, and iam new to this project. how can i know the input ,output strings in my project.
|
|
|
|
|
This is very big project( atleast for me and my company)and it is compiling and executing without errors.
Iam new to this and it is in maintenance phase.
how can i know the input and output strings in my project?
krishna
|
|
|
|
|
Krishnatv wrote: "Lines ending with only a carriage return have been detected. These will be modified to include a line feed"
My guess is that the source file comes from a Macintosh, running OS/9 (classic).
OS/9 uses a single Carriage Return for line breaks.
Krishnatv wrote: " This file contains invalid charracters that will be converted to ' . 's. "
I'm not sure about this message, but OS/9 uses a different character set, there can be character values that cannot be represented in Windows, hence the message.
Check all strings for dots and replace them with the correct charaters.
|
|
|
|
|
Have you checked if the files indeed have lines with only a carriage return at the end (Use a plain text editor to check for that, Scintilla being a good tool) ? Or is simply VC6.0 reading something wrong ?
My VC6.0 was one corrupted and displayed the same messages. It would also suppress the carriage returns when saving the files (which was very funny because the code was completely unreadable, but compilable). I had to reinstall it.
~RaGE();
|
|
|
|
|
AFAIK, VS tries to keep existing line endings in the files during editing.
This way, VS can be used to edit Unix-style files without problems.
(Unix uses a single Line Feed as line separator).
But VS gets into trouble when editing files with a single Carriage Return as line separator (Mac OS/9-style), that's why it inserts a Line Feed after each single Carriage Return.
|
|
|
|
|
Dear c++ friends,
in VB we have,
Dim MyChar
MyChar = Chr(65) ' Returns A.
MyChar = Chr(97) ' Returns a.
MyChar = Chr(62) ' Returns >.
MyChar = Chr(37) ' Returns %.
Do you know how to do the same thing by c++?
Thanks,
Joy Anne
|
|
|
|
|
char ch;
ch = 65;
ch = 97;
ch = 62;
ch = 37;
Nibu thomas
Software Developer
|
|
|
|
|
You can also give the character itself.
For eg.
char ch1 = 'A';
char ch2 = 'a';
char ch3 = '>';
char ch4 = '%';
- NS -
|
|
|
|