IDR_MAINFRAME的含义
来源:互联网 发布:omronplc编程软件 编辑:程序博客网 时间:2024/06/02 12:05
msdn上摘录出来的,没来得及翻译,以后再说
The document string is a string resource formed from a combination of up to seven substrings separated by /n characters, each of which describes one characteristic of the frame window or document associated with the document template. In left-to-right order, the substrings specify:
- The name that will appear in the frame window's caption bar (SDI applications only). This is usually the name of the application-for example, "Microsoft Draw."
- The default name assigned to new documents. If this substring is omitted, the default is "Untitled."
- A descriptive name for the document type that appears along with other document types in a dialog box when the user selects New from the File menu-for example, "Spreadsheet" or "Drawing." This entry is only needed in MDI applications that register two or more document types.
- A descriptive name for documents of this type combined with the default file name extension-for example, "Draw files (*.DRW)." This string is used in the file-type field of the Open and Save As dialog boxes.
- The default file name extension for documents of this type-for example, DRW.
- A name with no spaces that identifies the document type in the registry-for example, "MicrosoftDraw.Document." If an application calls CWinApp::RegisterShellFileTypes to register its document type(s), this substring becomes the default value for the HKEY_CLASSES_ROOT subkey named after the document's file name extension.
- A descriptive name for the document type-for example, "Microsoft Draw drawing file." Unlike the substring preceding it in the document string, this substring can include spaces. If your application calls CWinApp:: RegisterShellFileTypes to register its document type(s) in the system registry, this substring is the human-readable document type name that the Windows 95 shell displays in property sheets for documents of this type.
You can omit substrings when you create a document string resource; individual substrings may be omitted by following the previous /n character with another /n, and trailing NULL substrings may be omitted altogether. If you build an application with AppWizard, of course, the document string is created for you. The resource statements for a typical SDI document string look like this:
STRINGTABLEBEGIN IDR_MAINFRAME "Draw/n/n/nDraw files(*.drw)/n.drw/n Draw.Document/nDraw Document"END
When this application is started with an empty document, its frame window will have the title "Untitled - Draw." The default file name extension for documents saved by this application is DRW, and DRW will be one of the file name extensions listed in the Open and Save As dialog boxes.
After a document template is created, substrings belonging to the document string can be retrieved with MFC's CDocTemplate::GetDocString function. For example, the statements
CString strDefExt;pDocTemplate->GetDocString (strDefExt, CDocTemplate::filterExt);
copy the document's default file name extension to the CString named strDefExt.
- IDR_MAINFRAME的含义
- IDR_MAINFRAME字符串资源中各子串的含义
- IDR_MAINFRAME字符串资源中各子串的含义
- IDR_MAINFRAME字符串资源中各子串的含义
- IDR_MAINFRAME字符串资源中各子串的含义
- IDR_MAINFRAME字符串资源含义
- String Table中IDR_MAINFRAME字符串资源中各子串的含义
- 单文档的资源试图的字符串表中的IDR_MAINFRAME标示的七个字串的含义
- IDR_MAINFRAME
- IDR_MAINFRAME
- IDR_MAINFRAME
- IDR_MAINFRAME字符串资源各字串含义
- 深入挖掘IDR_MAINFRAME
- 深入挖掘IDR_MAINFRAME
- IDR_MAINFRAME 字符串 MFC
- "/"的含义
- /的含义
- $的含义
- 获取QQ所有在线好友IP的小技巧
- 完成端口重叠I/O模型的服务器中,存储和管理数万个socket句柄
- 五种WinSock I/O模型的特点及比较
- 日语学习之单词记忆法之右脑记忆法
- JSP服务器的安装与配置(带数据库,新手专用)
- IDR_MAINFRAME的含义
- 日常经典用语
- 【转载】熬夜也要有技巧:献给夜生动物们
- ASP.NET组件设计Step by Step(9)
- Hibernate最简单的配置和使用
- 一个有趣的英文兴趣小组交友网站meetup
- 2月22日 随机变量的分布函数
- 写给C语言初学者的话(ZT)
- 一图胜千言:RUP核心概念解析