OnMeasureItem与MeasureItem的区别
来源:互联网 发布:录音播放软件 编辑:程序博客网 时间:2024/05/07 06:07
CSDN上达人的解释。。。清楚了。
OnMeasureItem will be called only if the control's class is created at run time,
or it is created with the LBS_OWNERDRAWVARIABLE or CBS_OWNERDRAWVARIABLE style.
If the control is created by the dialog editor, OnMeasureItem will not be called.
This is because the WM_MEASUREITEM message is sent early in the creation process of the control.
If you subclass by using DDX_Control, SubclassDlgItem, or SubclassWindow,
the subclassing usually occurs after the creation process.
Therefore, there is no way to handle the WM_MEASUREITEM message in the
control's OnChildNotify function, which is the mechanism MFC uses to implement
ON_WM_MEASUREITEM_REFLECT.
另一个的解释是OnMeasureItem是响应子控件的WM_MEASUREITEM消息的,MeasureItem是响应反射的自己发送的WM_MEASUREITEM消息的。
上面貌似是MSDN上的...
- OnMeasureItem与MeasureItem的区别
- OnMeasureItem和OnDrawItem的区别和联系
- view 的OnDrawItem OnMeasureItem
- CListCtrl 中使用 DrawItem MeasureItem 注意事项
- WTL自绘ClistViewCtrl 没有触发MeasureItem
- &&与&,||与| 的区别
- &与&& ,|与||的区别
- -> 与 .的区别,&与*
- &与&& ,|与||的区别
- 注释区别???/与//的区别
- 与的区别与作用
- 与的区别与作用
- 与的区别与作用
- “//”与“\\”还有“/”与“\" 的区别
- java &与&& |与||的区别
- java &与&& |与||的区别
- 与的区别
- 与的区别
- 如何同时启动多个Tomcat服务器
- 车道偏离预警系统
- 抽象类和接口的区别
- Observer模式 的一个简单的例子
- Android 设置铃声
- OnMeasureItem与MeasureItem的区别
- Oracle左连接,右连接
- Hadoop中datanode无法启动
- 【js】总结 - 打开文件夹
- hive 元数据解析(转)
- 开博寄语
- response.setHeader参数、用法的介绍
- Google MapReduce中文版
- ORACLE EBS AP发票到付款的数据流