SDC C-Project CF Review 프로그램
LYW
2021-06-09 754fa0614469b76fcd789a4f50f9bee59aa09e9b
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
#pragma once
#include "CHCommonControls/GridCtrl.h"
#include "CHCommonControls/GridCell.h"
#include "CHCommonControls/GridCellCombo.h"
#include "CHCommonControls/GridCellCheck.h"
#include "afxwin.h"
 
// CDlgRcpGlassInfo ´ëÈ­ »óÀÚÀÔ´Ï´Ù.
 
class CDlgRcpGlassInfo : public CDialog
{
    DECLARE_DYNAMIC(CDlgRcpGlassInfo)
 
public:
    CDlgRcpGlassInfo(CWnd* pParent = NULL);   // Ç¥ÁØ »ý¼ºÀÚÀÔ´Ï´Ù.
    virtual ~CDlgRcpGlassInfo();
 
// ´ëÈ­ »óÀÚ µ¥ÀÌÅÍÀÔ´Ï´Ù.
    enum { IDD = IDD_DIALOG_REVIEW_RCP_EDITOR_GLASSINFO };
 
protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV Áö¿øÀÔ´Ï´Ù.
 
public:
    virtual BOOL OnInitDialog();
    afx_msg void OnBnClickedButtonRcpGlassInfoReset();
    afx_msg void OnBnClickedButtonRcpGlassInfoApply();
    afx_msg void OnBnClickedRadio(UINT nID);
    afx_msg void OnEnChangeEditRcpGlasstypeinfoTypeCount();
    afx_msg void OnGridDblClick(NMHDR *pNotifyStruct, LRESULT* pResult);
    DECLARE_MESSAGE_MAP()
 
protected:
    void        DrawConnerCutBmpImage();
    void        DrawOriginBmpImage();
 
    HBITMAP        m_BitmapCorner[4];
    HBITMAP        m_BitmapSelectCorner[4];
 
public:
    // Init Function
    void InitRcpGlassDirectionInfoControl();
    void InitRcpGlassSettingInfoControl();
 
    // Fill Function    
    void FillRcpGlassSettingInfo();
 
    // Update Fuction
    void UpdateDialogData();
 
    // Apply Function    
    void ApplyRcpGlassOriginSettingInfo();
 
    // Reset Function    
    void ResetRcpGlassOriginSettingInfo();
 
    int        m_nRadioCorrnerDir;
    int        m_nRadioOriginDir;
 
    CGridCtrl    m_ctrlGridGlassSettingInfo;
    int             m_nRcpGlassTypeCount;
 
    int        m_nCurrentIndex;
    afx_msg void OnBnClickedButtonRcpGlassinfoFindalign();
    afx_msg void OnBnClickedButtonRcpGlassinfoMoveFirstalign();
    afx_msg void OnBnClickedButtonRcpGlassinfoMoveSecondalign();
    afx_msg void OnBnClickedButtonRcpGlassinfoCaculateOrigin();
};