Информационный сайт

 

Реклама
bulletinsite.net -> Книги на сайте -> Программисту -> Янг Майкл Дж. -> "Visual С++ 6. Полное руководство: В 2 т.(том2)" -> 48

Visual С++ 6. Полное руководство: В 2 т.(том2) - Янг Майкл Дж.

Янг Майкл Дж. Visual С++ 6. Полное руководство: В 2 т.(том2) — Бином, 2006. — 530 c.
Скачать (прямая ссылка): vicualcc2006t2.djvu
Предыдущая << 1 .. 42 43 44 45 46 47 < 48 > 49 50 51 52 53 54 .. 173 >> Следующая

m_LineTable [Num++] += "CLIP_STROKE_PRECIS"; break;
default:
m_LineTable [Num++] += "unspecified clipping precision"; break;
}
m_LineTable [Num] = "lfQuality: "; switch (FontDialog.m_lf.lfQuality) {
case DEFAULT_QUALITY:
m_LineTable [Num++] += "DEFAULT_QUALITY"; break;
case DRAFT_QUALITY:
m_LineTable [Num++] += "DRAFT_QUALITY"; break;
case PROOF_QUALITY:
m_LineTable [Num+t] "PROOF_QUALITY" ;
break;
default:
m__LineTable [Numt+] += "unspecified output quality"; break;
m_LineTable [Numl = "IfPitchAndFamily: "; switch (FontDialog.m_lf.IfPitchAndFamily & 0x0003) j
case DEFAULT PITCH:
m_LineTable [Num] += "DEFAULT_PITCH; "; break;
case FIXED_PITCH:
m_LineTable [Num] += "FIXED_PITCH; "; break;
case VARIABLE PITCH:
m_LineTable [Num] += "VARIABLE_PITCH; "; break;
default:
m_LineTable [Num] 4= "unspecified pitch; "; break;
}
switch (FontDialog.m_lf.IfPitchAndFamily & OxOOFO)
case FF_DECORATIVE:
m_LineTable [Num+ + ] += "FF_DECORATIVE" ; break;
case FF_DONTCARE:
m_LineTable [Num++] += "FF_DONTCARE"; break;
case FF_MODERN:
m__LineTable [Num++] += "FF_MODERN"; break;
case FF_ROMAN:
m_LineTable fNum++] += "FFJROMAN"; break;
case FF_SCRIPT:
m__L.ineTable [Num++] += "FF_SCRIPT"; break;
case FF SWISS:
m_LineTable [Num++] += "FF_SWISS"; break;
default:
m_LineTable [Num++] += "unspecified family"; break;
}
m_LineTable [Num] = "IfFaceName: ";
m_LineTable [Num++] += FontDialog.m_lf.IfFaceName;
mLineTable [Num++] = "";
// сохраните значения TEXTMETRIC:
// создайте объект контекста устройства, связанный с окном // представления:
POSITION Pos = GetFirstViewPosition (); CView *PView = GetNextView (Pos); CClientDC ClientDC (PView);
// выберите новый шрифт в объект контекста устройства: ClientDC.SelectObject (Sm_Font); TEXTMETRIC TM;
ClientDC.GetTextMetrics (&TM);
m LineTable [Num++J = "TEXTMETRIC fields:";
m_LineTable [Num] = "tmHeight: "; sprintf (NumBuf,"%d", TM.tmHeight); m_LineTable [Num++] += NumBuf;
m_LineTable [Num] = "tmAscent: "; sprintf (NumBuf, "%d", TM.tmAscent); m_LineTable [Num++] += NumBuf;
m_LineTable [Num] = "tmDescent: "; sprintf (NumBuf, "%d", TM.tmDescent) ; m_LineTable [Num++] += N'jmBuf;
m_LineTable [Num] = "tmlnternalLeading: "; sprintf (NumBuf, "%d", TM.tmlnternalLeading); m_LineTable [Num++] += NumBuf;
m_LineTable [Num] = "tmExternalLeading: "; sprintf (NumBuf, "%d", TM.tmExternalLeading); m_LineTable [Num++] += NumBuf;
m_LineTable [Num] = "tmAveCharWidth: "; sprintf (NumBuf, "%d", TM.tmAveCharWidth);
m_LineTable [Num++] += NumBuf;
m_LineTable [Num] = "tmMaxCharWidth: "; sprintf (NumBuf, "%d", TM.tmMaxCharWidth); m_LineTable [Num++] += NumBuf;
m_LineTable [Num] = "tmWeight: "; sprintf (NumBuf,"%d", TM.tmWeight); m_LineTable [Num++] += NumBuf;
m_LineTable [Num] = "tmOverhang: "; sprintf (NumBuf, "%d", TM.tmOverhang); m_LineTable [Num++] += NumBuf;
m_LineTable [Num] = "tmDigitizedAspectX: "; sprintf (NumBuf, "%d", TM.tmDigitizedAspectX); m_LineTable [Num++] += NumBuf;
m_LineTable [Num] = "tmDigitizedAspectY: "; sprintf (NumBuf, "%d", TM.tmDigitizedAspectY); m_LineTable [Num++] += NumBuf;
m_LineTable [Num] = "tmFirstChar: "; sprintf (NumBuf, "%d", TM.tmFirstChar); m_LineTable [Num++] += NumBuf;
m_LineTable [Num] = "tmLastChar: "; sprintf (NumBuf,"%d", TM.tmLastChar); m_LineTable [Num++] += NumBuf;
m_LineTable [Num] = "tmDefaultChar: "; sprintf (NumBuf, "%d", TM.tmDefaultChar); m_LineTable [Num++] += NumBuf;
m_LineTable [Num] = "tmBreakChar: "; sprintf (NumBuf,"%d", TM.tmBreakChar); m_LineTable [Num++] += NumBuf;
m_LineTable [Num] = "tmltalic: "; sprintf (NumBuf, "%d", TM.tmltalic); m_LineTable [Num++] += NumBuf;
m_LineTable [Num] = "tmUnderlined: "; sprintf (NumBuf,"%d", TM.tmUnderlined) ; m_LineTable [Num++] += NumBuf;
m_LineTable [Num] = "tmStruckOut: "; sprintf (NumBuf, "%d", TM.tmStruckOut) ; m LineTable [Num++] += NumBuf;
m_LineTable [Num++] = "tmPitchAndFamily:
m_LineTable [Num] = " Pitch Info: "; if (TM.tmPitchAndFamily & TMPF_FIXED_PITCH) m_LineTable [Num] += "variable pitch "; else
m_LineTable [Num] += "fixed pitch "; if (TM.tmPitchAndFamily & TMPF_VECTOR)
m_LineTable [Num] += "vector font "; if (TM.tmPitchAndFamily & TMPF_TRUETYPE)
m_LineTable [Num] += "TrueType font "; if (TM.tmPitchAndFamily & TMPF_DEVICE)
m_LineTable [Num] += "device font"; Num++;
m_LineTable [Num] = "Family: "; switch (TM.tmPitchAndFamily & OxOOFO) (
case FF_DECORATIVE:
m_LineTable [Num++] += "FF_DECORATIVE"; break;
case FF_DONTCARE:
m_LineTable [Num++] += "FF_DONTCARE"; break;
case FF_MODERN:
m_LineTable [Num++] += "FF_MODERN"; break;
case FF_ROMAN:
m_LineTable [Num++] += "FF_ROMAN"; break;
case FF_SCRIPT:
m_LineTable [Num++] += "FF_SCRIPT"; break;
case FF_SWISS:
m_LineTable [Num++] += "FF_SWISS"; break;
default:
m__LineTable [Num++] += "unknown family"; break;
Предыдущая << 1 .. 42 43 44 45 46 47 < 48 > 49 50 51 52 53 54 .. 173 >> Следующая
Реклама
Авторские права © 2009 AdsNet. Все права защищены.
Rambler's Top100