惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
Docker
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Check Point Blog
腾讯CDC
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
IT之家
IT之家
月光博客
月光博客
U
Unit 42
K
Kaspersky official blog
T
Threatpost
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
GbyAI
GbyAI
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
云风的 BLOG
云风的 BLOG
酷 壳 – CoolShell
酷 壳 – CoolShell
I
InfoQ
Engineering at Meta
Engineering at Meta
Recorded Future
Recorded Future
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security @ Cisco Blogs
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
Security Archives - TechRepublic
Security Archives - TechRepublic
Webroot Blog
Webroot Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hacker News - Newest:
Hacker News - Newest: "LLM"
S
Schneier on Security
S
Secure Thoughts
The Register - Security
The Register - Security
B
Blog RSS Feed
The Last Watchdog
The Last Watchdog
P
Palo Alto Networks Blog
爱范儿
爱范儿
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
L
LINUX DO - 热门话题
C
Cisco Blogs
Spread Privacy
Spread Privacy
F
Full Disclosure
博客园 - 聂微东
T
The Blog of Author Tim Ferriss

博客园 - loli

SQL Server2005中的Intergate Service(SSIS)与Oracle数据库的迁移性能 站在别人的肩膀上的开发 在PD中导入Excel自动生成表结构 结束?开始! 更新一次,Grid的多列效果 Infragistics的Grid控件 - loli - 博客园 加入EReader团队的开篇章 C++/CLI draft 1.8 学习C++/CLI发现的一些问题,算不算Bug? 总结成了回顾 BlogReader存盘方式修改 BlogReader更新(只用Net2.0) BlogReader0.2后补设计图(含Net1.1版本下程序) 自写程序BlogReader 的一次升级,算是0.2了吧 BlogReader新的一点小些改动 话接上回,自写程序BlogReader 0.1版 自写VS2005程序BlogReader .Net1.1版本 话接上回,自写VS2005程序BlogReader 0.1.1.1版 仿SharpReader自写VS2005程序,有SharpReader的70%左右功能
学习ULike.NET,也分析DirectX Sample
loli · 2004-12-21 · via 博客园 - loli

看到Junhot对DirectX Sample的分析,觉得对我的理解很是由帮助。
在经过一番学习后,感觉也有一点所得,所以手痒发图,哈。

界面元素与消息处理都已继承树的模板方式模式组织。
    底层的 CDXUTControl 是抽象基类。
    所有界面控件作为他的派生类,重载所需函数。
    CDXUTDialog作容器类,维护一份CDXUTControl链表,
并在OnRender事件中,调用控件的Render方法。
    消息也通过CDXUTDialog类判断传递至其
所属控件的HandleMouse和HandleKeyboard方法。
消息的处理方法符合观察者模式
消息通过C#的EventHandle语法注册对应的处理方法。
Button.Changed += new EventHandler(OnButtonClick);
在控件内部判断消息,调用不同的Raise***Event。

更加详细的了解请看Junhot的系列文章。
图上有一明显错误,同一m_ScrollBar用法位于聚合的不同端,这个是由于Visio当位于同一端时报错,原因我不懂。