对 CWnd::OnChildNotify 这样理解对吗? 请帮我确认一下!
在msdn 中:
Remarks
This member function is called by this window’s parent window when it receives a notification message that applies to this window.
我是这样理解的: 当子窗口向父窗口发送 OnChildNotify 消息后, 父窗口调用子窗口类的 OnChildNotify 函数. 对吗?
现有一例子:
class CEmpView : public CListView
{
BOOL OnChildNotify(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pLResult);
}
而在类
class CMainFrame : public CFrameWnd
{
...
CSplitterWnd m_wndSplitter;
...
}
中调用:
m_wndSplitter.CreateView(1,0,RUNTIME_CLASS(CEmpView),CSize10,100),pContext))
请问: 在这儿 子窗口类为:CEmpView 而父窗口类为 CMainFrame.对吗????????