home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!mcsun!sun4nl!tnofel!felfs!rioj7
- From: rioj7@fel.tno.nl (M.L.M.Veraart)
- Subject: Re: Dialog boxes and Icons.
- Organization: TNO Physics and Electronics Laboratory
- Date: Thu, 17 Dec 92 16:14:35 GMT
- Message-ID: <1992Dec17.161435.14948@fel.tno.nl>
- References: <1992Dec11.114122.10968@ugle.unit.no>
- Lines: 27
-
- stephan@idt.unit.no (Eirik Morten Stephansen) writes:
-
-
- >I'm developing a Windows program with a dialog box as a main window.
- >Further I have 2 additional dialog boxes which I want to be icons at
- >startup.
-
- > My problem is how to get different icon for these to dialog boxes.
-
- >I have tried to redefine the GetWindowClass() (Borland C++ 3.1) and
- >then GetClassName(). I have also tried to use the SetClassWord, but
- >whatever I do every dialog window get the same ICON.
-
- >Does anyone have a solution ?
-
- A possibility to try is to use the dynamic ICON method.
- For this you must process the WM_ERASEICONBACKGROUND and
- WM_DRAWICON messages. (the names may not exact).
- I think an example can be found in Petzold's or in the Microsoft
- System Journal issue with the 10 best tips from ?.?... (2/3 months ago).
-
- Mario
- --
- Mario Veraart TNO Physics and Electronics Laboratory
- email: rioj7@fel.tno.nl The Hague The Netherlands
- "If all else fails, show pretty pictures and animated videos,
- and don't talk about performance", David Bailey
-