home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!ods!scott
- From: scott@ods.com (Scott Harper)
- Subject: Re: Change App's Icon On The Fly
- Message-ID: <1992Aug18.141851.25525@ods.com>
- Cc: heathh@cco.caltech.edu
- Organization: Optical Data Systems, Inc.
- X-Newsreader: Tin 1.1 PL5
- References: <1992Aug17.235109.17512@cco.caltech.edu>
- Date: Tue, 18 Aug 1992 14:18:51 GMT
- Lines: 35
-
- Heath Ian Hunnicutt (heathh@cco.caltech.edu) wrote:
- : 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.
-
-
- I tried this, but it didn't work for me...
-
- I even tried this:
-
- if (IsIconic(hWnd))
- {
- GetWindowRect(hWnd, (LPRECT) &rect);
- InvalidateRect(GetDesktopWindow(), (LPRECT) &rect, TRUE);
- UpdateWindow(GetDesktopWindow());
- }
-
- but it didn't work either. So if there are yet other suggestions,
- I'd love to hear them!!
-
- Thanks -
- --
- Scott Harper Optical Data Systems, Inc.
- scott@ods.com 1101 E. Arapaho Road
- (214) 234-6400 Richardson, TX 75081
-