|
@@ -29,9 +29,7 @@ IMPLEMENT_DYNCREATE(CFieldTestToolView, CView)
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CFieldTestToolView, CView)
|
|
|
// 标准打印命令
|
|
|
- ON_COMMAND(ID_FILE_PRINT, &CView::OnFilePrint)
|
|
|
- ON_COMMAND(ID_FILE_PRINT_DIRECT, &CView::OnFilePrint)
|
|
|
- ON_COMMAND(ID_FILE_PRINT_PREVIEW, &CFieldTestToolView::OnFilePrintPreview)
|
|
|
+
|
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
// CFieldTestToolView 构造/析构
|
|
@@ -39,7 +37,7 @@ END_MESSAGE_MAP()
|
|
|
CFieldTestToolView::CFieldTestToolView()
|
|
|
{
|
|
|
// TODO: 在此处添加构造代码
|
|
|
-
|
|
|
+ m_pCamera = NULL;
|
|
|
}
|
|
|
|
|
|
CFieldTestToolView::~CFieldTestToolView()
|
|
@@ -49,7 +47,8 @@ CFieldTestToolView::~CFieldTestToolView()
|
|
|
BOOL CFieldTestToolView::PreCreateWindow(CREATESTRUCT& cs)
|
|
|
{
|
|
|
// TODO: 在此处通过修改
|
|
|
- // CREATESTRUCT cs 来修改窗口类或样式
|
|
|
+
|
|
|
+ cs.style &= ~WS_CAPTION;
|
|
|
|
|
|
return CView::PreCreateWindow(cs);
|
|
|
}
|
|
@@ -62,8 +61,9 @@ void CFieldTestToolView::OnDraw(CDC* /*pDC*/)
|
|
|
ASSERT_VALID(pDoc);
|
|
|
if (!pDoc)
|
|
|
return;
|
|
|
-
|
|
|
// TODO: 在此处为本机数据添加绘制代码
|
|
|
+ if ( m_pCamera )
|
|
|
+ m_pCamera->ResizeVideoWindow();
|
|
|
}
|
|
|
|
|
|
|
|
@@ -75,22 +75,6 @@ void CFieldTestToolView::OnFilePrintPreview()
|
|
|
AFXPrintPreview(this);
|
|
|
}
|
|
|
|
|
|
-BOOL CFieldTestToolView::OnPreparePrinting(CPrintInfo* pInfo)
|
|
|
-{
|
|
|
- // 默认准备
|
|
|
- return DoPreparePrinting(pInfo);
|
|
|
-}
|
|
|
-
|
|
|
-void CFieldTestToolView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
|
|
|
-{
|
|
|
- // TODO: 添加额外的打印前进行的初始化过程
|
|
|
-}
|
|
|
-
|
|
|
-void CFieldTestToolView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
|
|
|
-{
|
|
|
- // TODO: 添加打印后进行的清理过程
|
|
|
-}
|
|
|
-
|
|
|
void CFieldTestToolView::OnRButtonUp(UINT nFlags, CPoint point)
|
|
|
{
|
|
|
ClientToScreen(&point);
|
|
@@ -99,7 +83,7 @@ void CFieldTestToolView::OnRButtonUp(UINT nFlags, CPoint point)
|
|
|
|
|
|
void CFieldTestToolView::OnContextMenu(CWnd* pWnd, CPoint point)
|
|
|
{
|
|
|
- theApp.GetContextMenuManager()->ShowPopupMenu(IDR_POPUP_EDIT, point.x, point.y, this, TRUE);
|
|
|
+ //theApp.GetContextMenuManager()->ShowPopupMenu(IDR_POPUP_EDIT, point.x, point.y, this, TRUE);
|
|
|
}
|
|
|
|
|
|
|