I'm not sure which "Draw" method to use, but whichever one it is, it
will involve passing a value for hdc. I've figured out that I need to
use Hacks.HDCFromGraphics(g) to get a value for hdc, but I don't know
what to do about the "g." How do I get a value for "g"??
g is a Graphics object; usually it's the one passed into the Paint event
for a Canvas or Window object.
In the
program, I note that it always seems to come into a Sub as a passed
parameter, but I can't seem to see anything on the outside of the Sub
that is passing anything in. Example: the Paint event handler. The
Paint event isn't called by code; it "just happens."
Correct, Paint is an event that is called by the framework when it's
time to repaint an item. It gets passed a Graphics handle that all the
drawing should happen on. So you can take that Graphics object and use
it when calling one of the Draw methods.
HTH!
~Aaron
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|