home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!mips!sdd.hp.com!elroy.jpl.nasa.gov!nntp-server.caltech.edu!heathh
- From: heathh@cco.caltech.edu (Heath Ian Hunnicutt)
- Subject: Re: Change App's Icon On The Fly
- Message-ID: <1992Aug17.235109.17512@cco.caltech.edu>
- Sender: news@cco.caltech.edu
- Nntp-Posting-Host: bartman
- Organization: California Institute of Technology, Pasadena
- References: <1992Aug17.210533.4439@ods.com>
- Date: Mon, 17 Aug 1992 23:51:09 GMT
- Lines: 20
-
- scott@ods.com (Scott Harper) writes:
- >[Wants to change his icon immediately]
-
- > SetClassWord(hWnd, GCW_HICON, hNewIcon); then,
-
- > if (IsIconic(hWnd))
- > InvalidateRect(hWnd, NULL, TRUE);
-
- >and it worked like I wanted it to. However, since I've switched
- >over to the 3.1 SDK, it no longer works. Any suggestions?
- I have done this very same thing in 3.1, followed by an
- UpdateWindow(hWnd); call. This works for me.
- Maybe MS thought that requiring UpdateWindow() to force an
- immediate redraw would optimize 3.1's performance...
-
- See ya,
- Heath
- --
- On Saturday, April 18, 1992, this .sig became self-aware.
-
-