mrDarker
2025-08-22 04d89bc9216553adcd0df87985a7665882924093
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#pragma once
#include "GridCtrl.h"
#include "GlassRecipe.h"
#include "Glass_Data.h"
#include "EdgeImageViewer.h"
 
// CDlgSideNotchSetting 措拳 惑磊涝聪促.
 
class CDlgSideNotchSetting : public CDialogEx
{
    DECLARE_DYNAMIC(CDlgSideNotchSetting)
 
public:
    CDlgSideNotchSetting(CWnd* pParent = NULL);   // 钎霖 积己磊涝聪促.
    virtual ~CDlgSideNotchSetting();
 
    // 措拳 惑磊 单捞磐涝聪促.
    enum { IDD = IDD_DLG_SIDE_NOTCH_SETTING };
 
protected:
    virtual BOOL OnInitDialog();
    BOOL PreTranslateMessage(MSG* pMsg);
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 瘤盔涝聪促.
 
    DECLARE_MESSAGE_MAP()
 
public:
    void        SetSelectSideIdx(eViewCmdSide* pSelectSideIdx)        {m_pSelectSideIdx = pSelectSideIdx;}
    void        SetSelectLanguage(emLanguageType* pSelectLanguage)    {m_pSelectLangType = pSelectLanguage;}
    void        SetDlgRecipe(CGlassRecipe* pDlgRecipe);
    void        SetGlassData(CGlass_Data* pGlassData)                {m_pGlassData = pGlassData;}
    void        SetRecipeImageViewer(CEdgeImageViewer* pViewer)        {m_pRecipeImageViewer = pViewer;}
    void        UpdateRecipe(BOOL bGetData);
 
    void        Init_SideNotch_List();
    void        Fill_SideNotch_List(BOOL bGetData);
 
    void        Init_SideNotch_Inspect_Param();
    void        Fill_SideNotch_Inspect_Param(BOOL bGetData);
 
    void        Init_SideNotch_Measure_Param();
    void        Fill_SideNotch_Measure_Param(BOOL bGetData);
    void        Fill_SideNotch_Measure_Param_CurrentResult();
 
    void        Init_SideNotch_Circle_Param();
    void        Fill_SideNotch_Circle_Param(BOOL bGetData);
 
private:
    eViewCmdSide*    m_pSelectSideIdx;
    emLanguageType*    m_pSelectLangType;
    CGlassRecipe*    m_pDlgRecipe;
    CGlass_Data*    m_pGlassData;
    CEdgeImageViewer*    m_pRecipeImageViewer;
 
    int                m_nSelectNotchIdx;
    int                m_nSelectNotchCircleIdx;
 
    CGridCtrl        m_NotchList;
    CGridCtrl        m_NotchList_Inspect_Param;
    CGridCtrl        m_NotchList_Measure_Param;
    CGridCtrl        m_NotchList_Circle_Param;
 
public:
    DECLARE_EVENTSINK_MAP()
    void ClickButtonAdd();
    void ClickButtonModify();
    void ClickButtonDel();
    void ClickButtonAdd_NotchCircle();
    void ClickButtonModify_NotchCircle();
    void ClickButtonDel_NotchCircle();
    void ClickButtonGetSideNotchResult();
    afx_msg void OnGridClickSelectNotch(NMHDR *pNotifyStruct, LRESULT* pResult);
    afx_msg void OnGridClickSelectNotchCircle(NMHDR *pNotifyStruct, LRESULT* pResult);
};