INFO: ???? ?????? ?? ?? ?? ???? ? ????

?????? ????????? ?????? ?????????
???? ???????: 74298 - ??? ???????? ???? ????? ????? ??? ???????.
??? ????? ??? ???????. ????? "??? ??" ??? ??? ??????? ??? ????.
????? ???? | ?? ????

??????

???? ??????? GetTextExtent() ????? ????? ?? ?????. ????? ?????? ?? ????? ??? ?? ??? ??? ???????? ??? ??? ????. ??? ??? ?? ???? ?? ???? ?? ???? ??? ?????? ?? ?????? ????? ??????? ???????? (GDI) ??? ??????? ???????? ??????? ???????? ?? ???? ??????.

??????? ????

simulated GDI ???? ????? ??? ????? ?????? overhangs. ??? ????? overhang ?? ???? TEXTMETRIC ?? ?????? ????? ?? ??? ??????? ?????? GetTextMetrics. ???? ??????? ???????? ????? ??? ??? ?? ?? ???? ?? ???? ?????:
   dwExtent = GetTextExtent(hDC, lpString, nCount);
   GetTextMetrics(hDC, &tm);
   xExtent = LOWORD(dwExtent) - tm.tmOverhang;
				
???????? ????? ????? ?? ?????? ???? ????. ??? ?? ??? ????? ?????? ???? ??? ?? ?? ???? ??????? ?? overhang ?? ??? ?????? ??????? ?? ?????? GetTextExtent. ??? overhang ??? ??? ????? ???? ?????? ??? ?????? ???? ???? ?????.
                                        GetTextExtent yields
                                        this as the extent:

                                              ||
       /   /                                  \/ 
      /   /           /   / /   /         /   /|   |
     /---/           /   / /   /         /   / |   |
    /   /           /---/ /---/         /---/  |---|
   /   /           /   / /   /         /   /   |   |
       -----      /   / /   /         /   /    |   |
         ^            /\                      /\ 
      Overhang        ||                      ||
               Because the next        Start the nonitalic H
               character is italic,    here because it does not
               start the next          slant and would partially
               character within the    overwrite the previous
               overhang of the         italic character.
               current character
				
overhang ????? ???? ?????? ?????? synthesized ?????? GDI ???? ???? ??? 1 GDI synthesizes ?????? ???? ??? ????? ???? ????? ?? ????? ??????? ?????? ?????? ???? ???? ?? ??????? ????? ??? ?? ??? ?????? ???? ????. ???? ??? ?????? ?? ???? ???? ????? ?? ????. ???? ?????? GetTextExtent ????? ??? ???? ???????? ??? 1 ??? ????. ???????? ?? ???? ??? ?? tmOverhang(1) ? ?????? ???????? ??? ?????.
        ||   ||
        ||   ||
        ||===||
        ||   ||
        ||   ||
              ---<= This line represents the "extra" overhang of 1.
                /\ 
                ||
             GetTextExtent yields
             this as the extent of the
             bold H.
				
??????: ??? ????? ??? ?????? ??? ??? ??????? ??????? Vectory. ????? GetTextExtent() ??? ??? ?????? ??????? ????? ????? ??????? ???? ??????? ??? ?? ???? ?? ???? ??? ABC. ?????? ??? ???? ?? ????????? ??? ??? ?????? ABC ???? ????? ?????? GetCharABCWidths().

???????

???? ???????: 74298 - ????? ??? ??????: 28/???? ??????/1435 - ??????: 3.2
????? ???
  • Microsoft Windows Software Development Kit 3.1
  • Microsoft Win32 ????? ????? ???????, ????? ?????? ??:
    • Microsoft Windows NT Server 3.5
    • Microsoft Windows NT Server 3.51
    • Microsoft Windows NT Server 4.0 Standard Edition
    • Microsoft Windows NT Workstation 3.5
    • Microsoft Windows NT Workstation 3.51
    • Microsoft Windows NT Workstation 4.0 Developer Edition
????? ??????: 
kbnosurvey kbarchive kbmt kbinfo KB74298 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????74298

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com