首页 MFC 基础类 CFileDialog和微软的专利
CFileDialog和微软的专利 PDF 打印 E-mail
用户评价: / 0
好 
MFC - 基础类
作者:Administrator   
周日, 20 7月 2008 09:49

FileDialog

这个对话框,我想用过MFC的人都会注意到红框部分,它实际上是一个扩展的CFileDialog。但是你有没有想到这其中还有一个微软的专利呢?

 

偶然间发现这个MS的专利:Method for extending a common user interface,是什么呢?

Abstract
A method for extending a common user interface in a windowing environment of a programmed computer system. To customize a common dialog box, an application provides a sub-dialog box template defining application-specific extensions to the common dialog box, and a sub-dialog procedure for controlling the behavior of the application-specific extensions. An operating system processes input to the extended version of the common dialog box depending on where user input occurs. In response to input at application-specific controls, the system sends a message to the sub-dialog procedure. In response to input at standard controls, the system sends a message to a common dialog procedure provided in the operating system.

稍微翻译一下:

“一种在视窗环境计算机系统里扩展通用用户界面的方法。为了定制一个通用对话框,一个应用提供一个子对话框模板定义与应用相关的对通用对话框的扩展。。。”

实际上就是CFileDialog中用到的扩展CFileDialog的方法,见图中红框。

没有想到这居然是一个专利,更没想到我们日常的编程中都快用烂的技巧,原来这么深奥。哈。
不过其实MS申请这个专利并不是让MFC的用户不能去用,而是让其他OS不能这么用,比如linux和Mac,哈。

赶明儿我也申请一个专利去~