⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ytdlg.h

📁 串口的读写
💻 H
字号:
// YTDlg.h : 头文件
//

#pragma once
#include"Com.h"
//#include "Pelco_D.h"
//#include"Pelco_P.h"
#include "StageLens.h"
#include "afxwin.h"
#include "afxcmn.h"
#include "BitmapBtn.h"
#include "CheckButton.h"

// CYTDlg 对话框
class CYTDlg : public CDialog
{
// 构造
public:
	CYTDlg(CWnd* pParent = NULL);	// 标准构造函数

// 对话框数据
	enum { IDD = IDD_YT_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持

public:
	CCom m_CCom;//Class
	CStageLens m_CStageLens;
// 实现
protected:
	HICON m_hIcon;
	
	// 生成的消息映射函数
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
private:
	CZBitmap m_btnUp,m_btnDown,m_btnLeft,m_btnRight,m_btnTopLeft,m_btnTopRight,m_btnButtomLeft,m_btnButtomRight;
	CZBitmap m_btnIrisIn,m_btnIrisOut,m_btnFoucsIn,m_btnFoucsOut,m_btnZoomIn,m_btnZoomOut;
	CCheckButton m_cbtnAutoScan,m_cbtnRainBrush,m_cbtnSearchLight;
public:
	int m_nAddr;
	int m_nPelcoType;
	int m_nSpeed;
	int m_nPre;
	BOOL bPatternStart,bPatternPlay;
	
public:
	void InitBtn();
	void YTBtnUp(int nResourceID);
	void YTBtnDown(int nResourceID);
	void YTCHECKBtn(int nResourceID);

	afx_msg void OnBnClickedButtonSetup();
	CComboBox m_cb_YT_Type;
	afx_msg void OnCbnSelchangeComboYtType();
	afx_msg void OnEnChangeEditYtAddr();
	CEdit m_nEdit_Addr;

	CSliderCtrl m_Slider_Speed;
	afx_msg void OnNMReleasedcaptureSliderSpeed(NMHDR *pNMHDR, LRESULT *pResult);

	afx_msg void OnEnChangeEditPre();
	CEdit m_nPrePoint;
	afx_msg void OnBnClickedButtonPreGo();
	afx_msg void OnBnClickedButtonPreSet();
	afx_msg void OnBnClickedButtonPreClear();
	afx_msg void OnBnClickedButtonStartPattern();
	afx_msg void OnBnClickedButtonPlayPattern();
};
extern CYTDlg *g_pMainDlg ;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -