home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / misc / 1369 < prev    next >
Encoding:
Text File  |  1992-08-17  |  892 b   |  30 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!ods!scott
  3. From: scott@ods.com (Scott Harper)
  4. Subject: Change App's Icon On The Fly
  5. Message-ID: <1992Aug17.210533.4439@ods.com>
  6. Organization: Optical Data Systems, Inc.
  7. X-Newsreader: Tin 1.1 PL5
  8. Date: Mon, 17 Aug 1992 21:05:33 GMT
  9. Lines: 19
  10.  
  11. Howdy netland -
  12.  
  13. I need to change a (minimized) application's icon "on the fly", and
  14. have the new icon displayed.  In Win 3.0 I used to call
  15.  
  16.    SetClassWord(hWnd, GCW_HICON, hNewIcon);    then,
  17.  
  18.    if (IsIconic(hWnd))
  19.       InvalidateRect(hWnd, NULL, TRUE);
  20.  
  21. and it worked like I wanted it to.  However, since I've switched
  22. over to the 3.1 SDK, it no longer works.  Any suggestions?
  23.  
  24. Thanks in advance -
  25.  
  26. -- 
  27. Scott Harper                       Optical Data Systems, Inc.
  28. scott@ods.com                      1101 E. Arapaho Road
  29. (214) 234-6400                     Richardson, TX  75081
  30.