Based on some of what you wrote this is for the Windows Platform correct? Is this actually C++? If so I think you're trying to enter arguments for one of the window creation functions but I'm not sure which. Could you tell us which function you are trying to use this with?
That line looks like a dialog resources line -the file could have a .rc or .res extension, if you're using visual studio just open it in VS resource editor, or use a resource editor like ResEdit: http://www.resedit.net/
a default field to be placed, that user may not able to enter value and it must have a default value in that box.
(using a resource editor) Put a static text control inside a (caption-less) group box
Another way to do this with a slightly different look would be to use a CStatic control instead. If you assign it an ID that is not IDC_STATIC then you can also assign any text to it at run time and it looks more like a label so users won't think there is some magic way to enable it that they just don't know. The only time this really breaks down is if you need scrolling text.
I'm not a huge fan of read only edit controls because I think it is frustrating when you can't figure out how to "enable" them as a user.
wel, matcom & ssllogic has got my point..
I can say that I am at the end part of this assignment, but still I need you all guys!
can you tell me how to change that [edit control] to [owner defined text]?my teacher has given me this assignment without telling me this thing and to submit tommoro.
please describe using steps, that will be great for me!
I know I will have to assign the same ID to this.but how?
As I wrote earlier -use the resource editor to edit the .rc/.res file.
To do it manually (warning, not responsible for making your program explode), open the file in notepad:
i. put the [owner defined text] inside "" in your code
ii. add ES_READONLY to ES_LEFT | ES_AUTOHSCROLL | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_GROUP
That quote was from MSDN. If I had to decide whether Microsoft or you has more authority regarding how microsoft components are defined, I wouldn't have a hard time doing so.
Yes and I already did so. I've told you exactly what you do wrong, and how you do it right. If you would please excuse me now, I don't feel like getting bitched at by people who can't stand being corrected.