\\CDyBar.hclass  CDyBar : public CControlBar
{
        DECLARE_DYNAMIC(DyBar)
         ...... //{{AFX_MSG(DyBar)
         .....
afx_msg void OnClose();         ....
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
}
\\CDyBar.cpp
IMPLEMENT_DYNAMIC(DyBar,CControlBar)
BEGIN_MESSAGE_MAP(DyBar, CControlBar)
//{{AFX_MSG_MAP(DyBar)
ON_WM_CLOSE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
但是在void CDyBar::OnClose()确捕获不到WM_CLOSE消息,不知哪错了,请各位高手帮帮忙。
急!急!急!