Advertisement

Win32 edit box

Started by November 08, 2000 02:55 PM
0 comments, last by Rudan 24 years, 2 months ago
Arghhh, this damn win32 programming drives me crazy... ok, i have a window with a edit box(I think that''s what it''s called) in it, and i''ve been trying to figure out how to read what the user have typed in it and save it in a variable... Anyone who can tell me how? I have searched for a good web page about win32 programming but I cant seem to find one. Got any suggestions? Thanks...
-----------------------------Reporter: Are they slow-moving, chief?Sheriff: Yeah, they're dead. They're all messed up.-Night of the living dead
This function should do it for you:

    int GetWindowText(  HWND hWnd,        // handle to window or control  LPTSTR lpString,  // text buffer  int nMaxCount     // maximum number of characters to copy);    

(Taken from msdn.microsoft.com)

This topic is closed to new replies.

Advertisement