Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
How can get text from object
Name: MSNamvari Date: February 22, 2002 at 01:30:27 Pacific
Comment:
hi i want to get text from objects i can get handle of object HWND but i cant acces to text of that. in fact i want write a program like Babylon Translator program
Name: Tom Date: February 22, 2002 at 05:25:52 Pacific
Reply:
Use GetDlgItemText(HWND, int, char*, int); The first int is the id of the object, the char* is the buffer that you want to copy the text to, and I think (not sure) the last int is for the size of the buffer.
0
Response Number 2
Name: The Wanderer Date: February 22, 2002 at 06:22:54 Pacific
Reply:
There are several ways. Here is the most basic one:
int GetWindowText( HWND hWnd, // handle to window or control LPTSTR lpString, // text buffer int nMaxCount // maximum number of characters to copy );
0
Response Number 3
Name: That Wanderer Date: February 22, 2002 at 06:25:19 Pacific
Reply:
And this one many be more basic somehow.
SendMessage( (HWND) hWnd, // handle to destination window WM_GETTEXT, // message to send (WPARAM) wParam, // number of characters to copy (LPARAM) lParam // text buffer );
Summary: Hi, I am implementing a code in visual c. I send a message to the other computer by use net send, and i don't known how to get this message (in orther computer) by visual c. Please help me ...
Summary: From MSDN Help File: SelLength, SelStart, SelText Properties Example This example enables the user to specify some text to search for and then searches for the text and selects it, if found. To try th...
Summary: Hi.. I have to create a programme in java. What does this programme do is that it needs to get an image from access database and display the image. using JDBC of course. How can do this?What is the sq...