Creating a text box in a dialog and processing it using the message loop  
Author Message
crazy_kebab





PostPosted: Visual C++ Language, Creating a text box in a dialog and processing it using the message loop Top

How do make a text box in a dialog I need it so that i can set a text box to a string, and as the user edits the numbers of this box, any other numbers of the same type become that value, e.g.

12234356

If i change either 2 to a Q then it would instantly become:

1QQ34356

How do i initially make a text box in a dialog And how am i going to pass a text changed message to the message loop within a dialog After this i can simply compare it to the original string and change the other values, that bit isn't too hard.

Thanks a lot, Chris.


Visual C++2  
 
 
pintu*





PostPosted: Visual C++ Language, Creating a text box in a dialog and processing it using the message loop Top

you Simply can use CEdit. and can Create it's Create method to create a Edit Control on your Dialog.And to retrive The value from CEdit you Can use GetWindowText() and for Setting text you can use SetWindowText() with the Edit control Handle. Hope this Will help you to Achieve your targer and One More thing use MSDN for More detail.

Thanx


 
 
Brian Kramer





PostPosted: Visual C++ Language, Creating a text box in a dialog and processing it using the message loop Top

It would be better to know what kind of development technology you're using: .NET framework, MFC, straight Win32, etc before giving an answer.  In any case, this is the wrong place to ask this question.  C++ language questions can be asked here.  UI programming issues here: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.ui&lang=en&cr=US

OTP


 
 
crazy_kebab





PostPosted: Visual C++ Language, Creating a text box in a dialog and processing it using the message loop Top

Sorry, i am programming in C++ using the native Win32 API.

 
 
einaros





PostPosted: Visual C++ Language, Creating a text box in a dialog and processing it using the message loop Top

Sorry, i am programming in C++ using the native Win32 API.

This forum covers the C++ language and standard extensions, not the win32 api, nor any third party or microsoft libraries. I've been telling you over and over to direct gui questions to the Microsoft UI newsgroup at http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.ui&lang=en&cr=US. That's the right, and best place (in terms of getting answers) to ask.

We're not saying this to be difficult, as most off topic questions actually are answered, but rather because you will not get the best support here. Imagine trying to get your car repaired at Burger King .. You may stumble upon a cook with some mechanical skills, but that's not what he's there for!