home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4821 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  1.5 KB

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!brunel!cs92njc
  2. From: cs92njc@brunel.ac.uk (Nicholas J Clayton)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Drawing on a dialog
  5. Message-ID: <C0ovz8.18u@brunel.ac.uk>
  6. Date: 11 Jan 93 12:28:19 GMT
  7. Organization: Brunel University, West London, UK
  8. Lines: 31
  9.  
  10.  
  11. Hi,
  12.  
  13. Does anyone know how to blit a bitmap onto a dialog box? Sounds like a simple
  14. procedure, so I am sure I am missing something elementary...
  15.  
  16. Given a bitmap referenced in the RC file, I load this bitmap during program
  17. initialisation, and store the handle in a global variable.
  18.  
  19. During processing of the WM_INITDLG message, I get a DC for the dialog, select
  20. the bitmap into a memory DC and try and blit the bitmap to the dialog. No joy.
  21.  
  22. I try creating a child window on the dialog (type STATIC, with a WHITEFRAME)
  23. and try and get a DC to this before blitting the bitmap. No joy.
  24.  
  25. I try turning the bitmap into a brush, and drawing a rectangle on the dialog
  26. using this brush. Again, no joy.
  27.  
  28. I must be missing something fairly obvious, but I'm not sure what it is 
  29. (obviously). For those who have seen it, the effect I am trying to duplicate
  30. is the "Help about" box for WinWord 2, with an oversized icon in the top left
  31. corner.
  32.  
  33. Any takers?
  34.  
  35. -- 
  36. _/     _/ _/_/_/ _/  _/  For those who are wondering why,
  37. _/_/   _/   _/   _/ _/   What we call SF ain't Sci-Fi,    
  38. _/  _/ _/   _/   _/_/         It's just there a fine line 
  39. _/   _/_/   _/   _/ _/        Between Robert Heinlein,      
  40. _/     _/ _/_/_/ _/  _/  And "Son of the Two Headed Fly"  
  41.