Article View: comp.os.ms-windows.programmer.tools.owl
Article #23Re: GetDlgItemText??
From: 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
Technical Details
Message-ID:
<4ga40q$72r@solaris.cc.vt.edu>Path:
arc1-ca.pugleaf.net!solaris.cc.vt.edu!usenetReferences:
<4g92tf$1bt@felix.junction.net>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solaris.cc.vt.edu!usenet From: sestes@vt.edu (Steven D. Estes) Newsgroups: comp.os.ms-windows.programmer.tools.owl,comp.lang.c++,comp.os.ms-windows.programmer.misc Subject: Re: GetDlgItemText?? Date: 19 Feb 1996 15:12:26 GMT Organization: Virginia Tech Message-ID: <4ga40q$72r@solaris.cc.vt.edu> References: <4g92tf$1bt@felix.junction.net> NNTP-Posting-Host: jflora.bevc.blacksburg.va.us Mime-Version: 1.0 X-Newsreader: WinVN 0.93.14