Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Which method?

Status
Not open for further replies.

INDO

Programmer
Mar 18, 2001
12
US
Could someone please tell me how I can get the text that is typed into an edit box to become displayed in a list box.
Basically I am adding an item to an existing list (the method i have returns a void) but i wish to display this text with the click of a button.

Any help please?
INDO
 
char lpszText[100];
GetWindowsText(hwndFromEdit,lpszText,100);
SendMessage(hWndYourListBox,LB_ADDSTRING,0,(LPARAM)lpszText); John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top