right10-2.htm

来自「Visual C++面向对象程序设计教程(配套习题资源)」· HTM 代码 · 共 286 行 · 第 1/2 页

HTM
286
字号
      </o:p>
      </span></font></p>
      <p class="MsoNormal" style="line-height: 100%; mso-line-height-rule: exactly; margin-top: 0; margin-bottom: 0"><font size="2"><span style="mso-bidi-font-size: 10.0pt; font-family: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">控件</span><span lang="EN-US" style="mso-bidi-font-size: 10.0pt"><o:p>
      </o:p>
      </span></font></p>
    </td>
  </tr>
  <tr>
    <td width="136" style="width:101.65pt;border-top:none;border-left:none;
  border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
  mso-border-top-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt">
      <p class="MsoNormal" style="line-height: 100%; mso-line-height-rule: exactly; margin-top: 0; margin-bottom: 0"><font size="2"><span style="mso-bidi-font-size: 10.0pt; font-family: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">字符串</span><span lang="EN-US" style="mso-bidi-font-size: 10.0pt"><o:p>
      </o:p>
      </span></font></p>
    </td>
    <td width="170" valign="top" style="width:127.4pt;border-top:none;border-left:
  none;border-bottom:solid windowtext .5pt;border-right:solid windowtext .5pt;
  mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
  padding:0cm 5.4pt 0cm 5.4pt">
      <p class="MsoNormal" style="line-height: 100%; mso-line-height-rule: exactly; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="mso-bidi-font-size: 10.0pt"><font size="2">IDS_<o:p>
      </o:p>  
      </font></span></p>
      <p class="MsoNormal" style="line-height: 100%; mso-line-height-rule: exactly; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="mso-bidi-font-size: 10.0pt"><font size="2">IDP_<o:p>
      </o:p>
      </font></span></p>
    </td>
    <td width="270" valign="top" style="width:202.35pt;border:none;border-bottom:
  solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:
  solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt">
      <p class="MsoNormal" style="line-height: 100%; mso-line-height-rule: exactly; margin-top: 0; margin-bottom: 0"><font size="2"><span style="mso-bidi-font-size: 10.0pt; font-family: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">字符串表中的字符串</span><span lang="EN-US" style="mso-bidi-font-size: 10.0pt"><o:p>
      </o:p>
      </span></font></p>
      <p class="MsoNormal" style="line-height: 100%; mso-line-height-rule: exactly; margin-top: 0; margin-bottom: 0"><font size="2"><span style="mso-bidi-font-size: 10.0pt; font-family: 宋体; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">消息框中使用的字符串</span><span lang="EN-US" style="mso-bidi-font-size: 10.0pt"><o:p>
      </o:p>
      </span></font></p>
    </td>
  </tr>
</table>
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
<p ALIGN="justify" style="line-height: 100%; margin-top: 10; margin-bottom: 0"><font FACE="oúì?,SimHei" LANG="ZH-CN" size="2">2.   
资源标识符的取值规则</font></p>
<font SIZE="3">
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"></font><font size="2"><font FACE="??ì?,SimSun" LANG="ZH-CN">在</font>VC<font FACE="??ì?,SimSun" LANG="ZH-CN">中资源标识符都有一个整数与之对应,取值范围是</font>0<font FACE="??ì?,SimSun" LANG="ZH-CN">~</font>65534<font FACE="??ì?,SimSun" LANG="ZH-CN">,系统为创建的标识符自动赋值,用户也可以修改这些值。如下所示在头文件</font>Resource.h<font FACE="??ì?,SimSun" LANG="ZH-CN">中定义了五个资源标识符,其中标识符</font>MYICON<font FACE="??ì?,SimSun" LANG="ZH-CN">的值是</font>101<font FACE="??ì?,SimSun" LANG="ZH-CN">等等。</font></font></p>
<blockquote>
  <blockquote>
    <p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">//Resource.h</font></p>
    <p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">#define   
    MYICON&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   
    101 //<font FACE="??ì?,SimSun" LANG="ZH-CN">图标</font></font></p>  
    <p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">#define   
    IDR_MENU1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   
    102 //<font FACE="??ì?,SimSun" LANG="ZH-CN">菜单</font></font></p>  
    <p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">#define   
    IDI_ICON2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   
    104 //<font FACE="??ì?,SimSun" LANG="ZH-CN">图标</font></font></p>  
    <p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">#define   
    ID_MENUITEM40001&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 40001 //<font FACE="??ì?,SimSun" LANG="ZH-CN">菜单</font></font></p>  
    <p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">#define   
    ID_MENUITEM40002&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 40002 //<font FACE="??ì?,SimSun" LANG="ZH-CN">菜单</font></font></p>  
  </blockquote>
</blockquote>
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font size="2">3.   
</font><font FACE="??ì?,SimSun" LANG="ZH-CN"><font size="2">资源标识符的编辑</font></p>
</font><font SIZE="3">
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"></font><font size="2"><font FACE="??ì?,SimSun" LANG="ZH-CN">为了对对象标识符进行有效的管理,</font>VC<font FACE="??ì?,SimSun" LANG="ZH-CN">提供了资源标识符浏览器,打开资源标识符浏览器的方法如下:</font></font></p>
<p ALIGN="justify" style="line-height: 100%; margin-top: 10; margin-bottom: 0"><font size="2"><font FACE="??ì?,SimSun" LANG="ZH-CN">选中“</font>View<font FACE="??ì?,SimSun" LANG="ZH-CN">”菜单中的“</font>Resource   
Symbols<font FACE="??ì?,SimSun" LANG="ZH-CN">”命令可以打开“</font>Resource   
Symbols<font FACE="??ì?,SimSun" LANG="ZH-CN">”对话框,如图</font><font FACE="??ì?,SimSun" LANG="ZH-CN">所示。其中列出了已被使用和未被使用的标识符名称及其对应的整数值。</font></font></p>
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.5pt;mso-bidi-font-size:
12.0pt;font-family:&quot;Times New Roman&quot;;mso-fareast-font-family:宋体;mso-font-kerning:
1.0pt;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:
AR-SA"><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600"
 o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f"
 stroked="f">
 <v:stroke joinstyle="miter"/>
 <v:formulas>
  <v:f eqn="if lineDrawn pixelLineWidth 0"/>
  <v:f eqn="sum @0 1 0"/>
  <v:f eqn="sum 0 0 @1"/>
  <v:f eqn="prod @2 1 2"/>
  <v:f eqn="prod @3 21600 pixelWidth"/>
  <v:f eqn="prod @3 21600 pixelHeight"/>
  <v:f eqn="sum @0 0 1"/>
  <v:f eqn="prod @6 1 2"/>
  <v:f eqn="prod @7 21600 pixelWidth"/>
  <v:f eqn="sum @8 21600 0"/>
  <v:f eqn="prod @7 21600 pixelHeight"/>
  <v:f eqn="sum @10 21600 0"/>
 </v:formulas>
 <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
 <o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:261pt;
 height:185.25pt'>
 <v:imagedata src="file:///C:/DOCUME~1/C986/LOCALS~1/Temp/msoclip1/01/clip_image001.png"
  o:title=""/>
</v:shape><![endif]-->
<img src="sample1.jpg" v:shapes="_x0000_i1025" width="298" height="214" style="float: left"></span></p>
<font SIZE="3">
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"></font><font FACE="??ì?,SimSun" LANG="ZH-CN" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></p>
<p ALIGN="JUSTIFY" style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font face="??ì?,SimSun" lang="ZH-CN" size="2">&nbsp;&nbsp;&nbsp;&nbsp;   
标识符浏览器可以完成的功能有:</font></p>
<ul>
  <ul TYPE="SQUARE">
    <blockquote>
      <blockquote>
        <blockquote>
          <blockquote>
            <blockquote>
              <blockquote>
                <ul>
                  <li>
                    <p style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font FACE="??ì?,SimSun" LANG="ZH-CN" size="2">建立新的标识符。</font></li>
                  <li>
                    <p style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font FACE="??ì?,SimSun" LANG="ZH-CN" size="2">改变未被使用的标识符名称及数值。</font></li>
                  <li>
                    <p style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font FACE="??ì?,SimSun" LANG="ZH-CN" size="2">删除未被使用的标识符。</font></li>
                  <li>
                    <p style="line-height: 100%; margin-top: 0; margin-bottom: 0"><font FACE="??ì?,SimSun" LANG="ZH-CN" size="2">快速切换到某标识符对应的资源编辑器窗口中。</font></li>
                </ul>
              </blockquote>
            </blockquote>
          </blockquote>
        </blockquote>
      </blockquote>
    </blockquote>
  </ul>
</ul>
<p style="line-height: 100%; text-indent: 0; margin: 0" class="右标题" align="left"> </p>
<p style="line-height: 100%; text-indent: 0; margin: 0" class="右标题" align="left"> </p>
<p style="line-height: 100%; text-indent: 0; margin: 0" class="右标题" align="left"> </p>
<p style="line-height: 100%; text-indent: 0; margin: 0" class="右标题" align="left"> </p>

<hr size="1" color="#008000">
<p style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>            

<p style="line-height: 100%; margin-top: 0; margin-bottom: 0">&nbsp;&nbsp; <span style="position: absolute; left: 33; top: 981"><a href="right10-1.htm" target="_self"><img border="0" src="rightd1.gif" width="113" height="70"></a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                          
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="position: absolute; left: 501; top: 982"><a href="right10-3.htm" target="_self"><img border="0" src="rightd2.gif" width="124" height="63"></a></span></p>             

</body>

</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?