Troubles with printing 2D Texts - strong changes between 2.3 and 2.4 version

Hugues Wisniewski h_wski at yahoo.com
Thu Jul 22 22:29:03 EDT 1999


> so that it does two renders in a row when printing, (just duplicate
> the Render() call) then that might fix your problem.

As I already told you, calling the Render twice changed nothing, but I've found another solution
Instead of using the m_hDC I use the m_hAttribDC of pDC in vtkMFCRenderView::OnDraw(CDC* pDC),
like this :

this->m_RenderWindow->SetupMemoryRendering(rcDest.right/dfScale, rcDest.top/dfScale, 
pDC->m_hAttribDC);

is replaced by

this->m_RenderWindow->SetupMemoryRendering(rcDest.right/dfScale, rcDest.top/dfScale, 
pDC->m_hDC);

It works correctly now, but is there a reason for using m_hAttribDC ?
Can I keep using m_hDC, or will I soon have some strong surprise using this data ?

thanks
Hugues
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list