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: Change App's Icon On The Fly
- Message-ID: <1992Aug17.210533.4439@ods.com>
- Organization: Optical Data Systems, Inc.
- X-Newsreader: Tin 1.1 PL5
- Date: Mon, 17 Aug 1992 21:05:33 GMT
- Lines: 19
-
- Howdy netland -
-
- I need to change a (minimized) application's icon "on the fly", and
- have the new icon displayed. In Win 3.0 I used to call
-
- 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?
-
- Thanks in advance -
-
- --
- Scott Harper Optical Data Systems, Inc.
- scott@ods.com 1101 E. Arapaho Road
- (214) 234-6400 Richardson, TX 75081
-