🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #225

Re: How to put text in dialog control?

#225
From: Ed McCreary
Date: Tue, 07 Apr 1992 22:08
18 lines
1272 bytes
In article <1992Apr7.152723.1059@u.washington.edu> rexw@hardy.u.washington.edu writes:
>
>Sorry if this is in the FAQ but I only saw the diffs and that didn't help
>to much.  Subject line says it.  I'm using BC 2.0 and trying to put text
>in a combo box in a dialog.  I try SetDlgItemText during the initialization
>of the dialog and nothing shows up.  What kind of string should I use? 
>

Try...

hCtl = GetDlgItem(hdlg, IDD_NAME);
SendMessage (hCtl, WM_SETTEXT, 0, (LONG) (LPSTR) TextToSet);


--
McCreary@sword.eng.hou.compaq.com     Computers are like Old Testament gods;
Me? Speak for Compaq?  Yeah, right.   lots of rules and no mercy.
                                                             Joseph Campbell
Technical Details
Message-ID: <1992Apr7.220830.11766@twisto.eng.hou.compaq.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!wotan.compaq.com!twisto.eng.hou.compaq.com!sword.eng.hou.compaq.com!mccreary
References: <1992Apr7.152723.1059@u.washington.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.ms.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!wotan.compaq.com!twisto.eng.hou.compaq.com!sword.eng.hou.compaq.com!mccreary
From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
Subject: Re: How to put text in dialog control?
Message-ID: <1992Apr7.220830.11766@twisto.eng.hou.compaq.com>
Sender: news@twisto.eng.hou.compaq.com (Netnews Account)
Organization: Compaq Computer Corp.
References: <1992Apr7.152723.1059@u.washington.edu>
Distribution: usa
Date: Tue, 7 Apr 1992 22:08:30 GMT
Lines: 18