1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- // MySplitterWnd.cpp : implementation file
- //
- #include "stdafx.h"
- #include "IDE.h"
- #include "MySplitterWnd.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CMySplitterWnd
- IMPLEMENT_DYNCREATE(CMySplitterWnd, CSplitterWnd)
- CMySplitterWnd::CMySplitterWnd()
- {
- }
- CMySplitterWnd::~CMySplitterWnd()
- {
- }
- void CMySplitterWnd::HideSplitter()
- {
- m_cx=m_cxSplitterGap;//save previous cx
- m_cy=m_cxSplitterGap;//save previous cy
- m_cxSplitterGap=1;
- m_cySplitterGap=1;
- }
- void CMySplitterWnd::ShowSplitter()
- {
- m_cxSplitterGap=m_cx;
- m_cySplitterGap=m_cy;
- }
- BEGIN_MESSAGE_MAP(CMySplitterWnd, CSplitterWnd)
- //{{AFX_MSG_MAP(CMySplitterWnd)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CMySplitterWnd message handlers
|