菜鸟问题:subclassing是什么东西?subclass作动词讲有时何意思?

seabank 2002-07-26 10:11:56
谢谢!!
...全文
130 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
softstone 2002-07-26
  • 打赏
  • 举报
回复
subclassing 在vc中就是子类化的意思...在MFC中,每一个控件资源(即windows控件)都与一个对应的MFC控件类相关联.如编辑框与CEDit;有时我们可以自己从MFC控件类中派生出我们自己的控件,如CMyEdit;这个时候为了实现控件资源与我们自己的控件类间的关联,可以将控件子类化....注意:一般来说,通过对话框模板建立的控件没有与任何MFC类相关联,若想进行关联,只要在对话框ClassView中建立相应的控件变量即可,,,,如果这时的控件变量的类型派生于你自己的类如CMyEdit,则该控件就已经进行了子类化,在其他情况下,一般要显示的调用子类化函数......就说这么多!!!!
Book Description Like it or not, JavaScript is everywhere these days—from browser to server to mobile—and now you, too, need to learn the language or dive deeper than you have. This concise book guides you into and through JavaScript, written by a veteran programmer who once found himself in the same position. Speaking JavaScript helps you approach the language with four standalone sections. First, a quick-start guide teaches you just enough of the language to help you be productive right away. More experienced JavaScript programmers will find a complete and easy-to-read reference that covers each language feature in depth. Complete contents include: JavaScript quick start: Familiar with object-oriented programming? This part helps you learn JavaScript quickly and properly. JavaScript in depth: Learn details of ECMAScript 5, from syntax, variables, functions, and object-oriented programming to regular expressions and JSON with lots of examples. Pick a topic and jump in. Background: Understand JavaScript’s history and its relationship with other programming languages. Tips, tools, and libraries: Survey existing style guides, best practices, advanced techniques, module systems, package managers, build tools, and learning resources. Table of Contents Part I: JavaScript Quick Start Chapter 1. Basic JavaScript Part II: Background Chapter 2. Why JavaScript? Chapter 3. The Nature of JavaScript Chapter 4. How JavaScript Was Created Chapter 5. Standardization: ECMAScript Chapter 6. Historical JavaScript Milestones Part III: JavaScript in Depth Chapter 7. JavaScript’s Syntax Chapter 8. Values Chapter 9. Operators Chapter 10. Booleans Chapter 11. Numbers Chapter 12. Strings Chapter 13. Statements Chapter 14. Exception Handling Chapter 15. Functions Chapter 16. Variables: Scopes, Environments, and Closures Chapter 17. Objects and Inheritance Chapter 18. Arrays Chapter 19. Regular Expressions Chapter 20. Dates Chapter 21. Math Chapter 22. JSON Chapter 23. Standard Global Var

16,551

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Creator Browser
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧