// RightPaneWnd.cpp : implementation file // #include "stdafx.h" #include "Overlay.h" #include "RightPaneWnd.h" #include "MainFrm.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CRightPaneWnd IMPLEMENT_DYNCREATE(CRightPaneWnd, CFormView) ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CRightPaneWnd::CRightPaneWnd() : CFormView(CRightPaneWnd::IDD) { //{{AFX_DATA_INIT(CRightPaneWnd) //}}AFX_DATA_INIT } CRightPaneWnd::~CRightPaneWnd() { /* if (m_LBitmapWnd.IsAllocated()) m_LBitmapWnd.Free();*/ } BEGIN_MESSAGE_MAP(CRightPaneWnd, CFormView) //{{AFX_MSG_MAP(CRightPaneWnd) ON_WM_CREATE() //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CRightPaneWnd drawing void CRightPaneWnd::DoDataExchange(CDataExchange* pDX) { CFormView::DoDataExchange(pDX); //{{AFX_DATA_MAP(CRightPaneWnd) DDX_Control(pDX, IDC_LEADRASTERVIEW1, m_RasterView); //}}AFX_DATA_MAP } void CRightPaneWnd::OnDraw(CDC* pDC) { CDocument* pDoc = GetDocument(); ASSERT_VALID(pDoc); } ///////////////////////////////////////////////////////////////////////////// // CRightPaneWnd diagnostics #ifdef _DEBUG void CRightPaneWnd::AssertValid() const { CFormView::AssertValid(); } void CRightPaneWnd::Dump(CDumpContext& dc) const { CFormView::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CRightPaneWnd message handlers void CRightPaneWnd::OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView) { if(bActivate==TRUE && pActivateView==this) { /* if(m_LBitmapWnd.HandlePalette(WM_QUERYNEWPALETTE, 0, 0)==FALSE) m_LBitmapWnd.Repaint();*/ } CFormView::OnActivateView(bActivate, pActivateView, pDeactiveView); } int CRightPaneWnd::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CFormView::OnCreate(lpCreateStruct) == -1) return -1; /* m_LBitmapWnd.EnableCallBack(TRUE); m_LBitmapWnd.EnableCenterOnZoom (FALSE); L_INT nRet = m_LBitmapWnd.SetWndHandle(m_hWnd);*/ return 0; }