home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5228 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.8 KB  |  45 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!mcsun!sun4nl!tnofel!felfs!rioj7
  3. From: rioj7@fel.tno.nl (M.L.M.Veraart)
  4. Subject: Re: Custom Controls and their Properties
  5. Organization: TNO Physics and Electronics Laboratory
  6. Date: Thu, 21 Jan 93 07:43:52 GMT
  7. Message-ID: <1993Jan21.074352.17443@fel.tno.nl>
  8. References: <1426@ottawa.opl.com.opl.com>
  9. Lines: 34
  10.  
  11. scott@opl.com (Scott Evernden) writes:
  12.  
  13. >I want to build some installable custom controls.
  14.  
  15. >These controls will maintain properties that I want interface designers be able
  16. >to set at design time via Dialog Editor or Resource Workshop.  To work with
  17. >these tools, I develop a style dialog which my control DLL will run when its
  18. >ControlStyle() function is called.  The style dialog collects values for the
  19. >properties of my control; most of these properties cannot simply be encoded as
  20. >some style bits..
  21.  
  22. >My problem is: how do I stuff the values of properties set at design time
  23. >(collected via my style dialog) into the resource file produced by Dialog
  24. >Editor or Resource Workshop?   Is this even possible?
  25.  
  26. [.. further examples deleted ..]
  27.  
  28. Scott, 
  29.  
  30. a possible solution is to build the dialog completely on your own
  31. using calls to CreateWindow for every dialog item you want. The settings
  32. of the individual controls can be stored in a private .INI file.
  33. Maybe it is possible to used a template resource in .rc file that has
  34. the controls that are not to be configured.
  35.  
  36. Hoping this will be a solution, I haven't inplemented it myself.
  37.  
  38. Mario Veraart
  39. email: mveraart@fel.tno.nl
  40. -- 
  41. Mario Veraart                  TNO Physics and Electronics Laboratory
  42. email: rioj7@fel.tno.nl        The Hague       The Netherlands
  43. "If all else fails, show pretty pictures and animated videos, 
  44.  and don't talk about performance",  David Bailey
  45.