DWF Viewer (Read Only)
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Draw into a device context (DC)

4 REPLIES 4
Reply
Message 1 of 5
mortenstr
696 Views, 4 Replies

Draw into a device context (DC)

Hi,

I have installed AEV and want to use it in my C++ application (Visual Studio 7 MFC app.). I have an image (CWnd derived) with it's own DC (device context) and want to draw the DWF file in this DC. Is it possible to draw the DWF to the DC directly using e.g. DrawToDC call, and if so, how?

Regards,
Morten Strand
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: mortenstr

Hi Morton,

>I have installed AEV and want to use it in my C++ application (Visual
Studio 7 MFC app.).
>I have an image (CWnd derived) with it's own DC (device context) and want
to draw the DWF
>file in this DC. Is it possible to draw the DWF to the DC directly using
e.g. DrawToDC call,
>and if so, how?

good to hear, that someone has the same problem like me.

I use Delphi and have posted two times that DrawToDC does not work with an
Image/Bitmap DC. It works fine with an Printer DC. The only answer i got was
Delphi is not surported.

In AEV it does not work, but Whip works fine!

Now I hope to get an answer. Because you use Visual Studio C++ and this is
suported.

regards
Thomas
Message 3 of 5
Anonymous
in reply to: mortenstr


style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">I
am surprised to hear that DrawToDC is not working for you. While I have never
used it to draw to a CWnd it is used internally to draw to a DC bitmap. I am a
little confused about why you are using DrawToDC to draw to a CWnd. Why are you
not attaching the ActiveX control directly to the window?


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Hi,

I have installed AEV and want to use it in my C++ application (Visual
Studio 7 MFC app.). I have an image (CWnd derived) with it's own DC (device
context) and want to draw the DWF file in this DC. Is it possible to draw the
DWF to the DC directly using e.g. DrawToDC call, and if so, how?

Regards,
Morten Strand

Message 4 of 5
Anonymous
in reply to: mortenstr

Hi Ben
> I am surprised to hear that DrawToDC is not working for you. While I have
never used it to
> draw to a CWnd it is used internally to draw to a DC bitmap. I am a little
confused about
> why you are using DrawToDC to draw to a CWnd. Why are you not attaching
the ActiveX control
> directly to the window?

I use this function for an printer preview window. The AEV ActiveX componete
is already open in an other window. With Whip it works fine but not with
AEV.

Rgards
Thomas
Message 5 of 5
Anonymous
in reply to: mortenstr

In that case I would use the PrintEx function. I assume that is also the
function that you using when printing.

Ben

"Thomas Bornhaupt" wrote in message
news:06FA0F56114877F65847C540EBD3F092@in.WebX.maYIadrTaRb...
> Hi Ben
> > I am surprised to hear that DrawToDC is not working for you. While I
have
> never used it to
> > draw to a CWnd it is used internally to draw to a DC bitmap. I am a
little
> confused about
> > why you are using DrawToDC to draw to a CWnd. Why are you not attaching
> the ActiveX control
> > directly to the window?
>
> I use this function for an printer preview window. The AEV ActiveX
componete
> is already open in an other window. With Whip it works fine but not with
> AEV.
>
> Rgards
> Thomas
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report