Article View: comp.os.ms-windows.programmer.tools
Article #653Re: OWL an ListBoxes
From: Kim Letkeman
Date: Wed, 23 Dec 1992 16:06
Date: Wed, 23 Dec 1992 16:06
19 lines
1435 bytes
1435 bytes
In article <mills.724696382@dialup.athena.lkg.dec.com> mills@athena.lkg.dec.com (George Mills) writes: | pjsmith@iastate.edu (Phil J Smith) writes: | | >I have a listbox in a dialog box that is supposed to display a directory list. | >The problem is that I can't get it to display the directory until I click in | >it. I would like the directory to be displayed when the dialog box is opened. | >I have tried SendDlgItemMsg(id,LBN_SETFOCUS,0,0) but that does not seem to | >work. Any ideas? | | Create a virtual function for WM_INITDIALOG and initialize your box there. Actually, the virtual function setupwindow effectively does this for you. Setupwindow is called for any kind of window (including dialogs loaded as resources) just before display. Kim -- Kim Letkeman kim@Software.Mitel.COM
Technical Details
Message-ID:
<KIM.92Dec23110609@kim.Software.Mitel.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!gatech!swrinde!cs.utexas.edu!torn!nott!cunews!revcan!software.mitel.com!kim!kimReferences:
<pjsmith.724655758@vincent1.iastate.edu> <mills.724696382@dialup.athena.lkg.dec.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!gatech!swrinde!cs.utexas.edu!torn!nott!cunews!revcan!software.mitel.com!kim!kim From: kim@Software.Mitel.COM (Kim Letkeman) Newsgroups: comp.os.ms-windows.programmer.tools Subject: Re: OWL an ListBoxes Message-ID: <KIM.92Dec23110609@kim.Software.Mitel.COM> Date: 23 Dec 92 16:06:09 GMT References: <pjsmith.724655758@vincent1.iastate.edu> <mills.724696382@dialup.athena.lkg.dec.com> Sender: kim@Software.Mitel.COM Organization: MITEL Public Switching, Kanata, Ontario, Canada Lines: 19 In-reply-to: mills@athena.lkg.dec.com's message of 18 Dec 92 16:33:02 GMT