http://blog.csdn.net/FlowShell/archive/2009/10/10/4648800.aspx 我在学习中经常遇到要重写DrawItem()的情况,但又有一个WM_DRAWITEM消息,它们是什么样的关系呢。 如果我们要重写一个CButton取名为CMyButton,我 Read More
posted @ 2016-04-18 00:35 findumars Views(2416) Comments(0) Diggs(0)
"Custom Draw" is a feature shared by all of Microsoft's common controls, which allows you to interject your own code while the control is drawing itse Read More
posted @ 2016-04-18 00:34 findumars Views(496) Comments(0) Diggs(0)
When the control first starts to paint itself, in response to a WM_PAINT, you receive a NM_CUSTOMDRAW notification message, with the draw stage set to Read More
posted @ 2016-04-18 00:33 findumars Views(606) Comments(0) Diggs(0)
PreTranslateMessage是消息在送给TranslateMessage函数之前被调用的,绝大多数本窗口的消息都要通过这里,比较常用,当需要在MFC之前处理某些消息时,常常要在这里添加代码. MFC 消息控制流最具特色的地方是CWnd类的虚拟函数PreTranslateMessage(), Read More
posted @ 2016-04-18 00:32 findumars Views(1848) Comments(0) Diggs(0)
界面美化 摘要本文专题讨论VC中的界面美化,适用于具有中等VC水平的读者。读者最好具有以下VC基础: 1. 大致了解MFC框架的基本运作原理; 2. 熟悉Windows消息机制,熟悉MFC的消息映射和反射机制; 3. 熟悉OOP理论和技术; 本文根据笔者多年的开发经验,并结合简单的例子一一展开,希望 Read More
posted @ 2016-04-18 00:31 findumars Views(3419) Comments(0) Diggs(0)