MySplitterWnd.cpp 1009 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // MySplitterWnd.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "IDE.h"
  5. #include "MySplitterWnd.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CMySplitterWnd
  13. IMPLEMENT_DYNCREATE(CMySplitterWnd, CSplitterWnd)
  14. CMySplitterWnd::CMySplitterWnd()
  15. {
  16. }
  17. CMySplitterWnd::~CMySplitterWnd()
  18. {
  19. }
  20. void CMySplitterWnd::HideSplitter()
  21. {
  22. m_cx=m_cxSplitterGap;//save previous cx
  23. m_cy=m_cxSplitterGap;//save previous cy
  24. m_cxSplitterGap=1;
  25. m_cySplitterGap=1;
  26. }
  27. void CMySplitterWnd::ShowSplitter()
  28. {
  29. m_cxSplitterGap=m_cx;
  30. m_cySplitterGap=m_cy;
  31. }
  32. BEGIN_MESSAGE_MAP(CMySplitterWnd, CSplitterWnd)
  33. //{{AFX_MSG_MAP(CMySplitterWnd)
  34. // NOTE - the ClassWizard will add and remove mapping macros here.
  35. //}}AFX_MSG_MAP
  36. END_MESSAGE_MAP()
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CMySplitterWnd message handlers