Print this window

void TfrmPrintSearch::getPaperSize()
 
{
TEXTMETRIC tm;
GetTextMetrics(printDC, &tm);
charWidth = tm.tmHeight;
lineHeight = (tm.tmHeight + tm.tmExternalLeading);
pageHeight = GetDeviceCaps(printDC, VERTRES); // Page height in pixels
pageWidth = GetDeviceCaps(printDC, HORZRES); // Page width in pixels
fracIndent = (charWidth/5); // Get the indention out by about a 1/4 of an inch
colSpace = (charWidth * 2); // Get the column out by about a half of an inch
} // End the getPaperSize method