home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4318 < prev    next >
Encoding:
Text File  |  1992-12-18  |  1.4 KB  |  38 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: Dialog boxes and Icons.
  5. Organization: TNO Physics and Electronics Laboratory
  6. Date: Thu, 17 Dec 92 16:14:35 GMT
  7. Message-ID: <1992Dec17.161435.14948@fel.tno.nl>
  8. References: <1992Dec11.114122.10968@ugle.unit.no>
  9. Lines: 27
  10.  
  11. stephan@idt.unit.no (Eirik Morten Stephansen) writes:
  12.  
  13.  
  14. >I'm developing a Windows program with a dialog box as a main window.
  15. >Further I have 2 additional dialog boxes which I want to be icons at
  16. >startup. 
  17.  
  18. >    My problem is how to get different icon for these to dialog boxes.
  19.  
  20. >I have tried to redefine the GetWindowClass() (Borland C++ 3.1) and
  21. >then GetClassName(). I have also tried to use the SetClassWord, but 
  22. >whatever I do every dialog window get the same ICON.
  23.  
  24. >Does anyone have a solution ?
  25.  
  26. A possibility to try is to use the dynamic ICON method.
  27. For this you must process the WM_ERASEICONBACKGROUND and
  28. WM_DRAWICON messages. (the names may not exact). 
  29. I think an example can be found in Petzold's or in the Microsoft
  30. System Journal issue with the 10 best tips from ?.?... (2/3 months ago).
  31.  
  32. Mario 
  33. -- 
  34. Mario Veraart                  TNO Physics and Electronics Laboratory
  35. email: rioj7@fel.tno.nl        The Hague       The Netherlands
  36. "If all else fails, show pretty pictures and animated videos, 
  37.  and don't talk about performance",  David Bailey
  38.