fast-yolo4/fast/FastMainView.h
2024-09-29 13:58:12 +08:00

60 lines
1.1 KiB
C++

// MFCApplication6View.h : CFastMainView 类的接口
//
#pragma once
#include "ptzScreen.h"
class CFastMainView : public CFormView
{
protected: // 仅从序列化创建
CFastMainView();
DECLARE_DYNCREATE(CFastMainView)
public:
#ifdef AFX_DESIGN_TIME
enum{ IDD = IDD_MFCAPPLICATION6_FORM };
#endif
// 特性
public:
//CFastMainDoc* GetDocument() const;
// 操作
public:
// 重写
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
virtual void OnInitialUpdate(); // 构造后第一次调用
void UpdataScreenPos();
// 实现
public:
virtual ~CFastMainView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
public:
CPtzScreen m_ptzScreen;
CRect m_clientRect;
protected:
// 生成的消息映射函数
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnSize(UINT nType, int cx, int cy);
void InitNetSDK();
};
#ifndef _DEBUG // MFCApplication6View.cpp 中的调试版本
inline CFastMainDoc* CFastMainView::GetDocument() const
{ return reinterpret_cast<CFastMainDoc*>(m_pDocument); }
#endif