????? ???? ??????? ???????? ?????? ??? ??? ?????? - ????????

?????? ????????? ?????? ?????????
???? ???????: 125681 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

??????

???? ??? ??????? ????? ???? ?????? ???????? ?????? ????? ?????? ???????? ?? ??? "?? ??????" ?? ???? ??????? Windows 95. ????? ??????? ??? ?????? ??? ????? ????? ???? ?????? ?? ??????? ?? ???? ????? ???? ??????.

??????? ????

????? ?? ???? ?? ???? ?????? ???????? ????? ???? ????? ????????? ???? ?????? ?????? ?????? ?????. ??? ???????? ???? ?????, ???? ???? ??????? ??????? ???? ???? ?????? ??? ???? ???? ???? ????? ????? ???. ??? ???? ?? ???? ???? ????? ???? ??? ??? ?????? ??? ???? ????? ?????? ?? ??? ?????? ??? ????? ??? ???????? ??? ?????.

???? ?? ? ??? ????? ???????? ???? ?????? ????? ?????? ??????. ????? ???? ?????? ???? ???? ??? ??? ?????? ????? ?? ??????. ????? ???? ?????? ????? ???? ???? ?????? ?????? ????? ????? ?? ??????. ???? ????? ??????? ??? ????? ?????? ??? ???? ?????? ????? ?????? ???????? ?????? GetDialogBaseUnits. ?????? ?? ??????? ??????? ???? ??????? ?? ???? GetDialogBaseUnits ??? ??????? ???????? ???? ?????? ??? ???? ??? ??????? ?????? ???? ??????? ?? ???? GetDialogBaseUnits ??????? ???????? ?????.

??????? ??? ?????????, ???? ???? ????? ??????? ???????? ?????? ????? ???? ??????? ?? ??? ?? ??????:
horz pixels == 2 * horz dialog units * (average char width  of dialog font
                        / average char width of system font)
vert pixels == 2 * vert dialog units * (average char height of dialog font
                        / average char height of system font)
				
???? ???? ????????? ???? ?????? "????? ??????" ? "???? ???? ?????? ????? ??? ?????.

???? ?????? ???? ???? ???? ????? ??? ????? ?????? ??? ???? ???? ?????? ??? ???:
1 horz dialog base unit == (2 * average char width  dialog font / 
                                average char width  system font) pixels
1 vert dialog base unit == (2 * average char height dialog font / 
                                average char height system font) pixels
				
??? ????? ??? ??????? ?? ???? ??? ?????? ??? ???:
hFontOld = SelectObject(hdc,hFont);
GetTextMetrics(hdc,&tm);
GetTextExtentPoint32(hdc,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrst"
            "uvwxyz",52,&size);
avgWidth = (size.cx/26+1)/2;
avgHeight = (WORD)tm.tmHeight;
				
??? tmAveCharWidth ???? TEXTMETRIC ??? approximates ??? ?????? ????? ??????? (????? ???? ???? ??? ????? "x") ? ??? ??? ?? ???? ???? ??? ?????? ????? ?????? ??? ????? ?????? ????????? ?? ??? ??????.

????? ??????? ?????? MapDialogRect ?????? ????? ???? ?????? ??? ???? ???? ???? ?? ???? ???? ????? ????? ?????? ??? ????? ???? ??????. ????? ??????? ????? ???????? ??? ?????? ??? ???????.

?????

?????? ??? ???? ?? ????????? ??? ??? ??????? ?????? ?????? ??????? ??????? ?? "????? ??????? ?? Microsoft:
145994????? ???? ????? ?????? ??? ??? ??????? ?? ????

???????

???? ???????: 125681 - ????? ??? ??????: 05/????? ???????/1426 - ??????: 2.3
????? ???
  • Microsoft Platform Software Development Kit-January 2000 Edition, ????? ?????? ??:
    • Microsoft Windows 95
    • the operating system: Microsoft Windows 2000
????? ??????: 
kbmt kbdlg kbhowto KB125681 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????125681

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

 

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