Eric Sanders
June 21st, 2004, 09:53 AM
I have an application that produces a calibrated tape. I am tying to impliment the ability to print this in mirror image as well. I call
CTransformView::OnDraw(CDC* pDC)
{
pDC->SetMapMode(MM_LOENGLISH);
SetGraphicsMode(pDC->GetSafeHdc(), GM_ADVANCED);
SetWorldTransform(pDC->m_hDC, &XForm);
...
...
with XFORM structure filled out appropriately, and on screen everything is fine, however, with print and print previews, all text is simply rendered upsite down, not mirrored! In fact, simply creating a dummy application that does nothing but print a line of text to screen and draws a single line under it exhibits the same behavior if you make the call to SetGraphicsMode, (without any transform call). You will see your line of text as normal on screen with your line under it, but printing and print previews will show the line under your text printed upside-down. Has anybody come across this bug and found a work-around, or am I missing something? Sheesh, will these MS bugs never cease?
TIA Eric
CTransformView::OnDraw(CDC* pDC)
{
pDC->SetMapMode(MM_LOENGLISH);
SetGraphicsMode(pDC->GetSafeHdc(), GM_ADVANCED);
SetWorldTransform(pDC->m_hDC, &XForm);
...
...
with XFORM structure filled out appropriately, and on screen everything is fine, however, with print and print previews, all text is simply rendered upsite down, not mirrored! In fact, simply creating a dummy application that does nothing but print a line of text to screen and draws a single line under it exhibits the same behavior if you make the call to SetGraphicsMode, (without any transform call). You will see your line of text as normal on screen with your line under it, but printing and print previews will show the line under your text printed upside-down. Has anybody come across this bug and found a work-around, or am I missing something? Sheesh, will these MS bugs never cease?
TIA Eric