hd

DockPane.cpp 582B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // DockPaneLog.cpp : ʵÏÖÎļþ
  2. //
  3. #include "stdafx.h"
  4. #include "CTI.h"
  5. #include "DockPane.h"
  6. #include "IView.h"
  7. // CDockPaneLog
  8. IMPLEMENT_DYNAMIC(CDockPane, CDockablePane)
  9. CDockPane::CDockPane(IResourceView* pView) : m_pView(pView)
  10. {
  11. }
  12. CDockPane::~CDockPane()
  13. {
  14. }
  15. BEGIN_MESSAGE_MAP(CDockPane, CDockablePane)
  16. ON_WM_SIZE()
  17. END_MESSAGE_MAP()
  18. // CDockPaneLog ÏûÏ¢´¦Àí³ÌÐò
  19. void CDockPane::OnSize(UINT nType, int cx, int cy)
  20. {
  21. CDockablePane::OnSize(nType, cx, cy);
  22. CRect rectClient;
  23. GetClientRect(rectClient);
  24. ASSERT(m_pView != NULL);
  25. m_pView->newSize(rectClient);
  26. }