home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / misc / 3636 < prev    next >
Encoding:
Text File  |  1992-11-24  |  860 b   |  30 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!cs.utexas.edu!torn!nott!emr1!jagrant
  3. From: jagrant@emr1.emr.ca (John Grant)
  4. Subject: Re: changing wallpaper on the fly?
  5. Message-ID: <1992Nov24.034136.22517@emr1.emr.ca>
  6. Organization: Energy, Mines, and Resources, Ottawa
  7. References: <1992Nov20.111639.221@otago.ac.nz>
  8. Date: Tue, 24 Nov 1992 03:41:36 GMT
  9. Lines: 19
  10.  
  11. In article <1992Nov20.111639.221@otago.ac.nz> helpdesk@otago.ac.nz writes:
  12. >From my program I want to change the wallpaper.
  13. >
  14. >I write the profile string
  15. >I send WM_INICHANGE
  16. >
  17. >The wallpaper changes next time I start windows.
  18. >I want it to change now.
  19. >
  20. >How do I do it? (Using Borland C++ 3.0)
  21.  
  22.     Just a wild guess, but how about:
  23.  
  24.     InvalidateRect(GetDesktopWindow(),NULL,TRUE);
  25.  
  26. -- 
  27. John A. Grant                        jagrant@emr1.emr.ca
  28. Airborne Geophysics
  29. Geological Survey of Canada, Ottawa
  30.