Thread View: comp.os.ms-windows.programmer.tools.owl
2 messages
2 total messages
Started by Ian
Mon, 19 Feb 1996 05:47
GetDlgItemText??
Author: Ian
Date: Mon, 19 Feb 1996 05:47
Date: Mon, 19 Feb 1996 05:47
11 lines
750 bytes
750 bytes
I want to get a string from a dialog box, say like a wanted to get d:\games\solitare.exe I figured I have to use the GetDlgItemText(think that's it) but when do I use? Any info would be appreciative Later
Re: GetDlgItemText??
Author: Steven D. Estes
Date: Mon, 19 Feb 1996 15:12
Date: Mon, 19 Feb 1996 15:12
24 lines
1179 bytes
1179 bytes
In article <4g92tf$1bt@felix.junction.net>, imccalli@portage.net says... > >I want to get a string from a dialog box, say like a wanted to get > >d:\games\solitare.exe > > >I figured I have to use the GetDlgItemText(think that's it) but when do I >use? > >Any info would be appreciative Well, if it's like the dialogs I have set up, there is a WM_INITDIALOG case and a WM_COMMAND case. Under the WM_COMMAND section I have two cases: OK and Cancel. Under the IDOK case (the user clicks OK), I call the GetDlgItemText function, for example, GetDlgItemText(hDlg, ID_Bus_Name, buffer,buffer_length); sscanf(buffer, "%s", &(buses[bus_highlight].name)); Hope this helps. Steve Estes sestes@vt.edu
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads