Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Compatible DC in a dialog box

0 views
Skip to first unread message

jhs

unread,
Apr 18, 1997, 3:00:00 AM4/18/97
to

Hi,

I am trying to create a memory dc that is compatible with the my dialog box
dc. I am overriding the OnPaint method which gives me a CPaintDC. When I
try to create a memory dc that is compatible with the CPaintDC
(CreateCompatibleDC), I get a compile error. When I try to typecast the
CPaintDC to a CDC, I also get a compile error. Any ideas? Thanks in
advance!

Jon

Chris Jackson

unread,
Apr 21, 1997, 3:00:00 AM4/21/97
to

jhs <j...@sweng.wpb.nuwc.navy.mil> wrote in article
<01bc4c11$d970e1e0$575561c6@strauss>...

What is the error? Are you remembering that the CPaintDC in the OnPaint
message is an Object, not a pointer to an object - which is what
CreateCompatibleDC requires?

Chris

--
Chris Jackson : chr...@eurodltd.co.uk , ch...@redlands.demon.co.uk
My Opinions, not my Companys' - so there!

0 new messages