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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

input

Status
Not open for further replies.

zar

Programmer
Dec 1, 2000
2
RU
how i can make input field in windows ???
(WinAPI)

does there anything like on cin or scanf ?

thanks at advance
 
Both

cin is in the STL iostream library
scanf is in the C Runtime library

Hope this helps
-pete
 
In WinAPI, you must create a child window of type "EDIT" (more commonly known as a text box control).

Rob Marriott
rob@career-connections.net
 
When you create a window, you must write
hwhdEdit=CreateWindow("EDIT",.....). The parameter "EDIT" is a name of a window class.
To set the window text use function SetWindowText(...) and to get it you should use two functions: GetWindowTextLengthLength and GetWindowText.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top