摘要: 一.加消息1.public INotifyUI,2.void Notify(TNotifyUI& msg);3.Notify实现4.m_pManager->AddNotifier(this);二.刷新void CControlUI::NeedUpdate(){ if( !IsVisible() ) return; m_bUpdateNeeded = true; Invalidate(); if( m_pManager != NULL ) m_pManager->NeedUpdate();}三.另一种加消息1.DECLARE_MESSAGE_MAP()也就是#define D 阅读全文