VC中的string table

类别:VC语言 点击:0 评论:0 推荐:

近来发现对VC中还是有很多的不懂,其中有一个不懂的就是string table.
今天要记录的东东是:
假如某一个string table是
\nTest42\nTest42\n\n\nTest4264.Document\nTest42 Document
那么:
这么核心的东西才给20分
第一个\nTest42标书主窗口的标题
第二个\nTest42是新文件名
紧接着的两个\n,其中的第一个用在file open 和save对话框中的标志符
第二个是用于file open 和save对话框的过滤器中的扩张类型
nTest4264.Document是注册文件类型
nTest42 Document是注册文件类型名


IDR_MAINFRAME <windowTitle>\n<docName>\n<fileNewName>\n
                    <filterName>\n <filterExt>\n<regFileTypeID>\n
                    <regFileTypeName>\n <filterMacExt(filterWinExt)>\n
                    <filterMacName(filterWinName)>
The following table defines each of the substrings:

Substring Definition
<windowTitle>
Name that appears in the application window's title bar (for example, "Microsoft Excel"). Present only in the document template for SDI applications.
<docName>
Root for the default document name (for example, "Sheet"). This root plus a number is used for the default name of a new document of this type whenever the user chooses the New command from the File menu (for example, "Sheet1" or "Sheet2"). If not specified, "Untitled" is used as the default.
<fileNewName>
Name of this document type. If the application supports more than one type of document, this string is displayed in the File New dialog box (for example, "Worksheet"). If not specified, the document type is inaccessible using the File New command.
<filterName>
Description of the document type and a wildcard filter matching documents of this type. This string is displayed in the List Files Of Type drop-down list in the File Open dialog box (for example, "Worksheets (*.XLS)"). If not specified, the document type is inaccessible using the File Open command.
<filterExt>
Extension for documents of this type (for example, ".XLS"). If not specified, the document type is inaccessible using the File Open command.
<regFileTypeId>
Identifier for the document type to be stored in the registration database maintained by Windows. This string is for internal use only (for example, "ExcelWorksheet").If not specified, the document type cannot be registered with the Windows File Manager.
<regFileTypeName>
Name of the document type to be stored in the registration database. This string may be displayed in dialog boxes of applications that access the registration database (for example, "Microsoft Excel Worksheet").

本文地址:http://com.8s8s.com/it/it58.htm