1、 如何跟进TreeCtrl被双击时的ReflectLastMsg函数
条件断点设置方法
Alt+F9
弹出编辑断点对话框,选择设置的断点所在的行;
选择Condition…按钮,输入wP==0&&lP==4
2、关于ReflectLastMsg的描述
This member function is called by the framework to reflect the last message to the child window.
static BOOL PASCAL ReflectLastMsg(
HWND hWndChild,
LRESULT* pResult = NULL
);
Parameters
hWndChild
A handle to a child window.
pResult
The result generated by the child window to be returned by the parent window. Can be NULL.
Return Value
Nonzero if the message was handled; otherwise 0.
Remarks
This member function calls SendChildNotifyLastMsg if the window identified by hWndChild is an OLE control or a window in the permanent map.
Handling Reflected Messages.
Handling Reflected MessagesSee Also
Declaring Message Handler Functions
Message reflection lets you handle messages for a control, such as WM_CTLCOLOR, WM_COMMAND, and WM_NOTIFY, within the control itself消息反射可以在控件内部来处理来自控件的消息. This makes the control more self-contained and portable. The mechanism works with Windows common controls as well as with ActiveX controls (formerly called OLE controls).
Message reflection lets you reuse your CWnd-derived classes more readily. Message reflection works via CWnd::OnChildNotify, using special ON_XXX_REFLECT message map entries: for example, ON_CTLCOLOR_REFLECT and ON_CONTROL_REFLECT. Technical Note 62 explains message reflection in more detail.
目前看来并不能确定是ReflectLastMsg。