// DockPaneLog.cpp : 实现文件 // #include "stdafx.h" #include "CTI.h" #include "DockPane.h" #include "IView.h" // CDockPaneLog IMPLEMENT_DYNAMIC(CDockPane, CDockablePane) CDockPane::CDockPane(IResourceView* pView) : m_pView(pView) { } CDockPane::~CDockPane() { } BEGIN_MESSAGE_MAP(CDockPane, CDockablePane) ON_WM_SIZE() END_MESSAGE_MAP() // CDockPaneLog 消息处理程序 void CDockPane::OnSize(UINT nType, int cx, int cy) { CDockablePane::OnSize(nType, cx, cy); CRect rectClient; GetClientRect(rectClient); ASSERT(m_pView != NULL); m_pView->newSize(rectClient); }