📄 book_text10.htm
字号:
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black">pDC_>GetTextMetrics(&tm);<O:P>
</O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"> <O:P>
</O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black">nheight=tm.tmHeight+tm.tmExternalLeading;<O:P>
</O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-spacerun: yes">
</SPAN><O:P></O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-spacerun: yes"> </SPAN>for
(i=0;i<4;i++)<O:P> </O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-spacerun: yes">
</SPAN>nColumnWidth[i]=(pDC_>GetTextExtent(ColumnName[i])).cx;<O:P>
</O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-spacerun: yes"> </SPAN>RECT r;<O:P>
</O:P></SPAN></P>
<P class=MsoNormalIndent
style="MARGIN-LEFT: 1cm; TEXT-INDENT: 0cm; mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-spacerun: yes">
</SPAN>r.right=r.left=720;<O:P> </O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-spacerun: yes"> </SPAN>r.top=_720;<O:P>
</O:P></SPAN></P>
<P class=MsoNormalIndent
style="TEXT-INDENT: 1cm; mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-spacerun: yes">
</SPAN>r.bottom=(r.top_nheight);<O:P> </O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"> <O:P>
</O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-tab-count: 1"> </SPAN>//print the
column headers<O:P> </O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-spacerun: yes"> </SPAN>for
(i=0;i<4;i++)<O:P> </O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black">{<O:P>
</O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>r.right=r.left+nColumnWidth[i];<O:P> </O:P></SPAN></P>
<P class=MsoNormalIndent
style="MARGIN-LEFT: 1cm; TEXT-INDENT: 1cm; mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black">pDC_>ExtTextOut(r.left,r.top,ETO_CLIPPED,<O:P>
</O:P></SPAN></P>
<P class=MsoNormalIndent
style="MARGIN-LEFT: 5cm; TEXT-INDENT: 0cm; mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-spacerun: yes">
</SPAN>&r,ColumnName[i],NULL);<O:P> </O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-tab-count: 1"> </SPAN><SPAN
style="mso-spacerun: yes">
</SPAN>r.left=r.right;<O:P> </O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black">}<O:P>
</O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-tab-count: 1">
</SPAN>r.top_=nheight;<O:P> </O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-tab-count: 1">
</SPAN>r.bottom_=nheight;<O:P> </O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"> <O:P>
</O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-tab-count: 1"> </SPAN>//print next 20
student records<O:P> </O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-tab-count: 1"> </SPAN>for
(j=0;j<5;j++)<O:P> </O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-spacerun: yes"> </SPAN>{<O:P> </O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-spacerun: yes">
</SPAN>r.right=r.left=720;<O:P> </O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-spacerun: yes"> </SPAN>for
(i=0;i<4;i++)<O:P> </O:P></SPAN></P>
<P class=MsoNormalIndent
style="TEXT-INDENT: 1cm; mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-spacerun: yes"> </SPAN>{<O:P> </O:P></SPAN></P>
<P class=MsoNormalIndent style="mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
style="mso-tab-count: 1"> </SPAN><SPAN
style="mso-spacerun: yes">
</SPAN>r.right=r.left+nColumnWidth[i];<O:P> </O:P></SPAN></P>
<P class=MsoNormalIndent
style="MARGIN-LEFT: 2cm; TEXT-INDENT: 0cm; mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black">pDC_>ExtTextOut(r.left,r.top,ETO_CLIPPED,&r,<O:P>
</O:P></SPAN></P>
<P class=MsoNormalIndent
style="MARGIN-LEFT: 2cm; TEXT-INDENT: 0cm; mso-line-height-alt: 1.3pt"><SPAN
lang=EN-US
style="BACKGROUND: #d9d9d9; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: 'Times New Roman'; mso-shading: white; mso-pattern: gray-15 black"><SPAN
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -