mcdonald@uxe.cso.uiuc.edu (10/25/89)
I have a question about graphics. I am working on a TeX dvi previewer for Windows. At present it works fine. But, I have hard-coded it so that the background is white and the text is black. The text is drawn with the bitblt function, with the SRC_AND code. The set bits in the memory bitmaps corresospond to pixels being set, and hence black. The bitmaps in momory are of course monochrome. What I would like to do, and presumably should do, is to make the background the system background color and the text the system (window) text color. Question is, how do I so this while OR-ing the set bits onto the screen (noting that the 1 bits correspond to the text color.) In other words, different letters overlay one another so that an O and a | at the same spot would come out an O with the line through it. Also, I need to draw rectangles, lines, and points on the screen. They need also to be the text color. How do I set the various pens and brushes to do this? Also, is it OK to simply CALL the DefWndProc, as an ordinary subroutine? If so, it seems that I could use it to erase the whole background of my main window. Doug McDonald