???????: ??????? ????? ?? ?? ????? ?? ????? ???? ??????

???? ?????? ???? ??????
???? ID: 74299 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??.
??? ?? ??????? ???? | ??? ?? ??????? ????

??????

????? ?? ??? ???? ????? ???? ?????? ????? ???? ??? ??? Microsoft Windows ???????? ??????? ???, ??? ????????? ?????? ?????? ????? ?? ??????? ????? ???????CreateFont(), ??CreateFontIndirect()?????? ????? ????????? ???? ?? ??? ??????? ??????? ?? ????? ?????

?????????? ?? ??? ???? ????? ?? ????? ???? ??, ?? ??? ??? ????????? ???? ????? ????? ????, ???? ????? ??? ?? ?? ?????? ?? ???? ???? ?? ???? MM_TEXT ?????? ??? ?? ??? ?? ?????? ?? ???? ?? ??? ?????? ??????? ?? ?????? ????? ??? ?? ???? ???? ?????? ??? ??? ????? ?? ???? ?? ???? ???? ?? ??? ???? ?? ?????? derive ???? ?????

???? ???????

??????? ????? ?????? ????, ????? ????? ?? ????? ????:
                                Point Size * LOGPIXELSY
   height = Internal Leading + -------------------------
                                          72
				
LOGPIXELSY ?? ?????? ?? ??? ??????? ??? ??? ??????? ?? ?????? ??? ?? ??? ?? ??? ?? ?? ??GetDeviceCaps()?????? LOGPIXELSY ??????????? ?? ??? ??? 72 ?????????? ?? ??????? ?? ??? 72 ????? ??? ???

?? ?????? ?? ??? ?????? ?? ?? ?? ?? ?????? ?????? ????? ?? ??? ??? ???? ??? ????? ??? ?? ??????? ?? ????????? ???? ?? ??? ??? ????? ?? ?????? ?? ??-??? ??? ???? ?? ??? ????? variation ????? ?? ????? ????:
            -(Point Size * LOGPIXELSY)
   height = --------------------------
                         72
				
?? ????? ??????????? ???? ?? ???? ?? ???? ??:
   plf->lfHeight = -MulDiv (nPtSize, GetDeviceCaps (hdc, LOGPIXELSY), 72);
				
?? ??? ????????? ???CreateFont()??,CreateFontIndirect()??? ???? ?? ?? ??? ??????? ??? ????????? ???? ?? ?? ????? ???????? ?? ??? ????? ???? ?????? ???? ?? ????? ?? ???? ???? ????? ?? ??? ?????? ???? ???? ?? ????? ?? ???? ????? ?? ??? ?? ???? ?? ?????? ?????? ?? ????? ???? ?????? demonstrated ?? ??? ???:
   ----------  <------------------------------
   |        |           |- Internal Leading  |
   | |   |  |  <---------                    |
   | |   |  |        |                       |- Cell Height
   | |---|  |        |- Character Height     |
   | |   |  |        |                       |
   | |   |  |        |                       |
   ----------  <------------------------------
				
????? ????? ?? computes ?? ????? ?? ????? ????:
                (Height - Internal Leading) * 72
   Point Size = --------------------------------
                           LOGPIXELSY
				
?????? ?????? ?? ????? ?? ??? ??? ?? ??????? ?? ??? ???TEXTMETRIC???? ?? ??????? LOGPIXELSY ??? ?? ??????? ?? ??GetDeviceCaps?????? ?? ??? ??? ??? ??? ???

??????? ??? ???? ?????? ???????? ??? ?????? WindowsMulDiv()?????? ?? ???? ?????? ???? ???????? ?? ????? ?????? ???? ?? ??? ??? excellent ???? ???

???

???? ID: 74299 - ????? ???????: 02 ?????? 2010 - ??????: 4.0
???? ???? ???? ??:
  • Microsoft Windows Software Development Kit 3.1
  • Microsoft Win32 Application Programming Interface, ?? ???? ??? ?????? ???? ???:
    • 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
??????: 
kbinfo kbmt KB74299 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:74299

??????????? ???

 

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