📄 vidcapdlgdlg.h
字号:
// VidCapDlgDlg.h : header file
//
#if !defined(AFX_VIDCAPDLGDLG_H__5443EE83_7434_4545_84B3_3D3C04112E52__INCLUDED_)
#define AFX_VIDCAPDLGDLG_H__5443EE83_7434_4545_84B3_3D3C04112E52__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "FrameGrabber.h"
#include "SerialCom.h"
/////////////////////////////////////////////////////////////////////////////
// CVidCapDlgDlg dialog
class CVidCapDlgDlg : public CDialog
{
// Construction
public:
CVidCapDlgDlg(CWnd* pParent = NULL); // standard constructor
CFrameGrabber m_FrameGrabber;
LPBYTE lpDIBBits;
CDC* gDC;
/* void FindMaxPatch(BYTE Ymin, BYTE Umin, BYTE Vmin,
BYTE Ymax, BYTE Umax, BYTE Vmax,
int& centerX, int& centerY
);
void GetPos21();*/
CSerialCom port;
private:
LPBITMAPINFO lpbi;
int h;
int w;
int Res;
// Dialog Data
//{{AFX_DATA(CVidCapDlgDlg)
enum { IDD = IDD_VIDCAPDLG_DIALOG };
BOOL m_Black;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CVidCapDlgDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CVidCapDlgDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonShow();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnMenuitemVideosource();
afx_msg void OnMenuitemSamplecolor();
afx_msg void OnMenuitemLoadcolor();
afx_msg void OnButtonTrack();
afx_msg void OnButtonStop();
afx_msg void OnCheckBlack();
afx_msg void OnButton1();
afx_msg void OnConnectserialport();
afx_msg void OnStartRobot();
afx_msg void On_Stop_Robot();
afx_msg void OnLeft10deg();
afx_msg void OnRight10Deg();
afx_msg void OnLeft90Deg();
afx_msg void OnRight90Deg();
afx_msg void Onreverse();
afx_msg void OnGo();
afx_msg void Ontest();
afx_msg void OnStartSobel();
afx_msg void OnStopSobel();
afx_msg void OnGausianON();
afx_msg void OnGausianOFF();
afx_msg void OnLaplacianON();
afx_msg void OnLaplacianOff();
afx_msg void Onrotate();
afx_msg void OnStopAll();
afx_msg void Oncolourdetect();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_VIDCAPDLGDLG_H__5443EE83_7434_4545_84B3_3D3C04112E52__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -