mrDarker
2025-08-22 f8ad0695ff2431cb90640be52b523d6434bdbf83
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#pragma once
#include "afxwin.h"
 
 
// CChipInspectDlg ¶Ô»°¿ò
 
class CChipInspectDlg : public CDialogEx
{
    DECLARE_DYNAMIC(CChipInspectDlg)
 
public:
    CChipInspectDlg(CWnd* pParent = NULL);   // ±ê×¼¹¹Ô캯Êý
    virtual ~CChipInspectDlg();
 
// ¶Ô»°¿òÊý¾Ý
#ifdef AFX_DESIGN_TIME
    enum { IDD = IDD_DIALOG_CHIP_INSPECT };
#endif
 
protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV Ö§³Ö
 
    DECLARE_MESSAGE_MAP()
public:
    virtual BOOL PreTranslateMessage(MSG* pMsg);
    virtual BOOL OnInitDialog();
    afx_msg void OnClose();
    afx_msg void OnBnClickedButtonGetImageInchip();
 
private:
    IClsDisplay *m_display;
    CComboBox m_combSide;
    int m_imageIndex;
    Point2I m_ptMouseUp;
 
    int m_nMinX;
    int m_nMaxX;
    int m_nEdgeChipThres;
 
private:
    //1. ³õʼ»¯
    void InitDisplay(void);
 
    //2. ½çÃæ³õʼ»¯
    void InitUiParam(void);
 
    //3. Ö´ÐÐ
    void MouseEventProc(int msgEvent, int x, int y);
    
public:
    afx_msg void OnBnClickedButtonProcessInchip();
};