home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / mswindo / programm / tools / 1823 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  1.4 KB

  1. Path: sparky!uunet!paladin.american.edu!gatech!swrinde!cs.utexas.edu!torn!nott!cunews!revcan!software.mitel.com!kim!kim
  2. From: kim@Software.Mitel.COM (Kim Letkeman)
  3. Newsgroups: comp.os.ms-windows.programmer.tools
  4. Subject: Re: OWL an ListBoxes
  5. Message-ID: <KIM.92Dec23110609@kim.Software.Mitel.COM>
  6. Date: 23 Dec 92 16:06:09 GMT
  7. References: <pjsmith.724655758@vincent1.iastate.edu>
  8.     <mills.724696382@dialup.athena.lkg.dec.com>
  9. Sender: kim@Software.Mitel.COM
  10. Organization: MITEL Public Switching, Kanata, Ontario, Canada
  11. Lines: 19
  12. In-reply-to: mills@athena.lkg.dec.com's message of 18 Dec 92 16:33:02 GMT
  13.  
  14. In article <mills.724696382@dialup.athena.lkg.dec.com> mills@athena.lkg.dec.com (George Mills) writes:
  15.  
  16. | pjsmith@iastate.edu (Phil J Smith) writes:
  17. | >I have a listbox in a dialog box that is supposed to display a directory list.
  18. | >The problem is that I can't get it to display the directory until I click in
  19. | >it.  I would like the directory to be displayed when the dialog box is opened.
  20. | >I have tried SendDlgItemMsg(id,LBN_SETFOCUS,0,0) but that does not seem to 
  21. | >work.  Any ideas?
  22. | Create a virtual function for WM_INITDIALOG and initialize your box there.
  23.  
  24. Actually, the virtual function setupwindow effectively does this for
  25. you. Setupwindow is called for any kind of window (including dialogs
  26. loaded as resources) just before display.
  27.  
  28. Kim
  29. --
  30. Kim Letkeman    kim@Software.Mitel.COM
  31.