home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3795 < prev    next >
Encoding:
Internet Message Format  |  1992-07-26  |  1.3 KB

  1. Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!Sirius.dfn.de!darwin.sura.net!wupost!spool.mu.edu!umn.edu!csus.edu!netcomsv!mork!daveb
  2. From: daveb@netcom.com (Dave Briccetti)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: Dynamic dialog boxes
  5. Message-ID: <g2km!cm.daveb@netcom.com>
  6. Date: 26 Jul 92 18:01:47 GMT
  7. Article-I.D.: netcom.g2km!cm.daveb
  8. References: <1992Jul18.164801.25433@fics.uucp>
  9. Organization: Netcom - Online Communication Services  (408 241-9760 guest)
  10. Lines: 21
  11.  
  12. ekl@fics.uucp writes:
  13. : I have a need for creating dynamic dialog boxes. I can *not* load a 
  14. : template from the resource file. 
  15. : So, my question is, does anyone know of any sample code which 
  16. : illustrates how to do this?
  17. : Should I create a DLGTEMPLATE-structure and the use WinCreateDlg(), or
  18. : would it be easier to use WinCreateWindow() for the box itself, followed
  19. : by a WinCreateWindow() for each control? Ideas, anyone?
  20. Eirik: If you're comfortable enough with C and PM to dynamically create
  21. those data structures, then the WinCreateDlg approach is a good way to
  22. go.  I did it years ago, but unfortunately can't find any sample code for
  23. you.  I'll be happy to look over your code if you can't get it to work.
  24. -- 
  25.  
  26. Dave Briccetti, Owner, Dave Briccetti & Associates
  27. OS/2 Developer/Consultant
  28. P.O. Box 1713
  29. Lafayette, CA  94549-7013
  30.