MiddleWares_YiHe 郑州颐和医院随访系统中间件

DockPane.cpp 565B

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