Vaclav
2011-08-03 16:21:37 UTC
I noticed the printable area in MFC applications is calculated
incorrectly.
To verify that, I put together a simple document-view project with
default settings. I overrid the OnPaint method of the view and added a
statement that draws a border of the printable area:
void CpokusDrawableAreaView::OnPrint(CDC* pDC, CPrintInfo* pInfo)
{
CView::OnPrint(pDC, pInfo);
pDC->Rectangle(pInfo->m_rectDraw);
}
When the page is printed or print-previewed, 3 edges are very thin but
one is thick. I do not think that is the real printable area of the
printer. I tried various printers.
Please see screenshot here:
http://www.2shared.com/photo/14I-3ZQ9/print_preview.html
Any ideas?
Thanks
Vaclav
incorrectly.
To verify that, I put together a simple document-view project with
default settings. I overrid the OnPaint method of the view and added a
statement that draws a border of the printable area:
void CpokusDrawableAreaView::OnPrint(CDC* pDC, CPrintInfo* pInfo)
{
CView::OnPrint(pDC, pInfo);
pDC->Rectangle(pInfo->m_rectDraw);
}
When the page is printed or print-previewed, 3 edges are very thin but
one is thick. I do not think that is the real printable area of the
printer. I tried various printers.
Please see screenshot here:
http://www.2shared.com/photo/14I-3ZQ9/print_preview.html
Any ideas?
Thanks
Vaclav