home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / misc / 41810 < prev    next >
Encoding:
Internet Message Format  |  1993-01-09  |  1.4 KB

  1. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!escargot!goanna!steveh
  2. From: steveh@goanna.cs.rmit.oz.au (Steven Hayes)
  3. Newsgroups: comp.os.os2.misc
  4. Subject: Palette Manager problems (save-bits don't save palette)
  5. Message-ID: <16329@goanna.cs.rmit.oz.au>
  6. Date: 9 Jan 93 07:33:43 GMT
  7. Organization: Comp Sci, RMIT, Melbourne, Australia
  8. Lines: 25
  9.  
  10. Hi Netters,
  11.  
  12. I'm sure this has been posted about before, but I couldn't remeber the 
  13. solution to the problem, so...
  14.  
  15. I've been writing a image viewing program for OS/2 2.0 which uses the
  16. palette manager. Its pretty simple at the moment - displays pgm format images
  17. of any size and 'depth' and lets you scroll around the image in a window.
  18.  
  19. Everything was whoopy (sassi, froody ;-) until I added a menu to the window.
  20. Now when a drop-down menu goes away the portion of the client area obscured
  21. by the menu gets redrawn with an incorrect palette. The only repaint
  22. messages that don't work properly are when the obscuring window uses the
  23. SAVEBITS option (which doesn't actually cause a WM_PAINT message to get
  24. sent, instead the window 'remembers' what is was covering)
  25.  
  26. So, what do I have to do to insure that SAVEBITS redraws work with the correct
  27. palette entries?
  28.  
  29. Cheers
  30.  
  31. Steve
  32. -- 
  33.    Steven Hayes                                    |  steveh@rmit.edu.au
  34.    Royal Melbourne Institute of Technology (RMIT)  |  +61 3 660-2693
  35.