🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #1924

Graphics question

#1924
From: mcdonald
Date: Wed, 25 Oct 1989 09:40
27 lines
1579 bytes
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
Technical Details
Message-ID: <245400030@uxe.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!uxe.cso.uiuc.edu!mcdonald

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!uxe.cso.uiuc.edu!mcdonald
From: mcdonald@uxe.cso.uiuc.edu
Newsgroups: comp.windows.ms
Subject: Graphics question
Message-ID: <245400030@uxe.cso.uiuc.edu>
Date: 25 Oct 89 09:40:12 GMT
Lines: 27
Nf-ID: #N:uxe.cso.uiuc.edu:245400030:000:1144
Nf-From: uxe.cso.uiuc.edu!mcdonald    Oct 24 20:03:00 1989