Win32 C/C++/VB: Getting text from a text field
Win32 C/C++/VB: Getting text from a text field
RealWorld Graphics logo    
Not logged in.  
IndexSoftwareGraphicsArticlesDiscussMore...

Login/Register
Forum List
Announcements
Icons and Cursors
Images
3D graphics
Win32 C/C++/VB
.NET C#/C++/VB
Tips and tricks
General discussion
User List
Search this site using Google

Is the speed of this web adequate?

Free newsletter
Your email address:

Back to forum Win32 C/C++/VB

Getting text from a text field

2006-06-27Author: canadian_coder
Hi Folks;

As you might have guessed I'm pretty new to the whole Win32 programming so bear with me.

I have an application that produces a number of text fields, drop-down lists and a couple buttons. In this thread I'm hoping to find someone who knows how I can get text from a text field (or could point me to some examples or a list of functions).

Thanks!

2006-06-28Author: Vlasta
The basic way in Win32 is to send a WM_GETTEXT message to the text field. It may look like this:
TCHAR buffer[100];
SendMessage(handleToYourTextBox, WM_GETTEXT, 100, (LPARAM)buffer);

If you are using something like MFC, WTL, or .NET Framework, there also is another way specific for your framework.


Post Reply

Please login or register before posting.

Message text:


Back to forum Win32 C/C++/VB

Copyright © 2005-2007 RealWorld Graphics. Contact: info@rw-designer.com.