View Single Post
Old 05-13-2004, 03:11 PM   #2 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Store the text in a CString or a char* for example and parse through the string to lookup the character you are interesting in.

Otherwise, to stay within your code using GetWindowTextLength:
Code:
char* buffer =  NULL;
length = GetWindowTextLength(whatever_control_box); //Like Edit box.
 //Add one for the terminating character.
length++;
// Size the buffer to hold all the data;
buffer = new char[length]; 
//Fill the bufer with text
GetWindowText(whatever_control_box, buffer, length); 
// Now iterate through "buffer" your C++ way.
__________________

Last edited by Valmont; 05-13-2004 at 04:00 PM.
Valmont is offline   Reply With Quote