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

📄 htkjdlg.h

📁 控件串口简单事件触发,通过串口对控件进行通信
💻 H
字号:
// HTKJDlg.h : header file
//

#if !defined(AFX_HTKJDLG_H__090CB825_BEF7_4006_BA46_39D5350BEBEF__INCLUDED_)
#define AFX_HTKJDLG_H__090CB825_BEF7_4006_BA46_39D5350BEBEF__INCLUDED_
#include "MyToolTipCtrl.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CHTKJDlg dialog
#include "CuoWUDlg.h"
#include "uoWUDlg.h"
#include "mscomm.h"
class CHTKJDlg : public CDialog
{
// Construction
public:
	CMSComm m_Comm;
	CHTKJDlg(CWnd* pParent = NULL);	// standard constructor
    void DrawTitleBar(CDC *pDC);
	CString m_time;
	CRect	dlgrect;
	CRect m_rtButtExit;	//关闭按钮位置
	CRect m_rtButtMax;	//最大化按钮位置
	CRect m_rtButtMin;	//最小化按钮位置
	CRect m_rtButtHelp;	//帮助按钮位置
	CRect m_rtIcon;		//图标位置
	BOOL  m_ReSizeFlag;
	int	m_OldWidth;
	int	m_OldHeight;
// Dialog Data
	//{{AFX_DATA(CHTKJDlg)
	enum { IDD = IDD_HTKJ_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CHTKJDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
		virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
	CMyToolTipCtrl m_ToolTip;
	BOOL	m_ShowTitle;
	// Generated message map functions
	//{{AFX_MSG(CHTKJDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnOnCommMscomm();
	virtual void OnOK();
	virtual void OnCancel();	
	afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
	afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);	
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_HTKJDLG_H__090CB825_BEF7_4006_BA46_39D5350BEBEF__INCLUDED_)

⌨️ 快捷键说明

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