📄 轧板标号检测演示dlg.h
字号:
// 轧板标号检测演示Dlg.h : header file
//
#if !defined(AFX_DLG_H__9EDC7E36_EB95_461B_8D99_8C994E3E9332__INCLUDED_)
#define AFX_DLG_H__9EDC7E36_EB95_461B_8D99_8C994E3E9332__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CMyDlg dialog
class CMyDlg : public CDialog
{
// Construction
public:
CMyDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CMyDlg)
enum { IDD = IDD_MY_DIALOG };
CStatic m_result;
CEdit m_edit1;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
int SetWindow();
int WriteChar(BYTE *pbyte, int Width, int Height,int No);
int ReadBmpFile(CString FileName,int *LineByte,int Type);
CString MatchChar(int CharNum, int *ytop, int *ybottom, int *xleft, int *xright);
int DelLittleArea8(int AreaOrPerimeter,long* count,int Type);
BYTE *m_lpBit;
BYTE *m_lpBitOld;
BYTE *m_lpBitOld2;
BYTE *m_pmodeByte;
CString IniDir;
int ReadBmpFile(CString FileName, int Type);
int OpenBmpFile(int Type);
int nWidth,nHeight,nByteWidth,nOldHeight;
HICON m_hIcon;
//默认最大29个字符 [0]没有用
int lineWhiteS[30],lineWhiteE[30], lineBlackS[30],lineBlackE[30],CharTop[30],CharBottom[30];
int lineBlackNum,lineWhiteNum;
CString FileName;
int WindowMinWidth,WindowMinHeight;//对话框的 最小(原始)大小
CMenu *menuMain;
CMenu *menuSub;
// Generated message map functions
//{{AFX_MSG(CMyDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnOpenfile();
afx_msg void OnBinary();
afx_msg void OnProjection();
afx_msg void OnProjectiondivide();
afx_msg void OnRecongnise();
afx_msg void OnReloadfile();
afx_msg void OnOnestep();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnAbout();
afx_msg void OnHelp();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLG_H__9EDC7E36_EB95_461B_8D99_8C994E3E9332__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -