Extracting text from a Edit Control ?

G

Gizmo

hi

iv created my self a Edit Controle as followed

hwndTextBox =
CreateWindow("EDIT","temp",WS_CHILD|WS_VISIBLE|WS_BORDER,100,50,200,100,hwnd
,NULL,GlobalHInstance,NULL);

and it works fine i can type stuff in it. my only prob is i do not know how
to extract the text.

iv also created a button and what im trying to do is that when some one
presses the button i can copy what ever is in the Edit Controle and do what
ever i want to do with it in the programing.

iv got my button working as well i just can't figure out how to get access
to what the user types in.

Any help would be grate

Thanks

Scott
 
J

Josh Sebastian

hi

iv created my self a Edit Controle as followed

hwndTextBox =
CreateWindow("EDIT","temp",WS_CHILD|WS_VISIBLE|WS_BORDER,100,50,200,100,hwnd
,NULL,GlobalHInstance,NULL);

and it works fine i can type stuff in it. my only prob is i do not know how
to extract the text.

GetWindowText, IIRC. Try asking in comp.os.ms-windows.programmer.win32.

Josh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top