home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5252 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.6 KB  |  42 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!suned1.Nswses.Navy.Mil!jkb
  3. From: jkb@suned1.Nswses.Navy.Mil (John K Bunk)
  4. Message-ID: <9301211730.AA22170@suned1.Nswses.Navy.Mil>
  5. Organization: NSWSES Code 4g13 - Opinions: Are Mine Alone
  6. Subject: MFC Question:  can I get a DC from a CDC?
  7. Date: Thu, 21 Jan 1993 09:30:43 -0800
  8. X-Received: by usenet.pa.dec.com; id AA16499; Thu, 21 Jan 93 11:47:40 -0800
  9. X-Received: by inet-gw-1.pa.dec.com; id AA00724; Thu, 21 Jan 93 09:56:50 -0800
  10. X-Received: by suned1.Nswses.Navy.Mil (4.1/Nswses4.1.2_920723eb)
  11.     id AA22170; Thu, 21 Jan 93 09:30:44 PST
  12. X-Mailer: Mail User's Shell (7.2.3 5/22/91)
  13. X-To: comp.os.ms-windows.programmer.misc.usenet
  14. Lines: 26
  15.  
  16. I'm currently learing C++ and MFC by creating a
  17. Device Independant Bitmap (DIB) object which reads
  18. a .BMP file and displays the bitmap via a CDC
  19. object.
  20.  
  21. The problem:  SetDIBitsToDevice needs a DC for
  22. it's first argument.  SetDIBitsToDevice is not
  23. a member of the CDC class.  The DC attribute
  24. within the CDC class is probably a private item
  25. (can't find it in the Class Libraries Reference
  26. manual).  I cannot find any CDC member which gives
  27. me a DC.  So, how can I get a DC from the CDC 
  28. passed to my DIB paint routine to give to the
  29. SetDIBitsToDevice call?
  30.  
  31. Thanks in advance for all responses!
  32. John Bunk
  33.  
  34. P.S.  If someone has already written a DIB object
  35. which can read .BMP files, please let me know!
  36.  
  37. -- 
  38.                       John Bunk, Code 4G13, NSWC-PHD 
  39.                        jkb@suned1.nswses.navy.mil
  40.     Any statements / opinions made here are mine, alone, not the Navy's.
  41.               But that's OK, the Navy is usually wrong anyhow.
  42.