SDC C-Project CF Review 프로그램
kojingeun
2023-11-24 c112cf54a238afa473e7eb0ea6298e06f4957658
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
#pragma once
#include "afxcmn.h"
#include <map>
 
#include "akButtonColor.h"
 
 
class CakButtonColorCtrl
{
public:
    CakButtonColorCtrl(void);
    ~CakButtonColorCtrl(void);
 
    void clear();    //DestroyWindow()¿¡¼­ clearÈ£ÃâÇØ¾ßµÊ!!
 
    void setCtrlOption(_ColorButtonOption CtrlOption);
    _ColorButtonOption getCtrlOption(){return m_CtrlOption;};
 
    void addControl(int nIDCtl, CWnd* pParent);
 
 
    CButton* GetDlgItem(int nIDCtl);
 
protected:
    std::map<int,void*> m_mapControls;
    _ColorButtonOption m_CtrlOption;
};
 
/*
»ç¿ë¹ý
 
//µî·ÏÀº ¾Æ·¡¿Í °°ÀÌ ÇϸéµÊ.. ÀÌÇØ¾ÈµÇ·Á³ª?¤¾¤¾ ÅÂÇö[2016/9/22]
    BOOL CButtonTestDlg::OnInitDialog()
    {
        CDialog::OnInitDialog();
 
        _ColorButtonOption  op = m_bcFlatGradition.getCtrlOption();
        op.nStyle = 1;
        op.nEdgeStyle = 1;
        m_bcFlatGradition.setCtrlOption(op);
 
        m_bcFlatGradition.addControl(IDC_BUTTON_TYPE3DGRAD_FLAT_1, this);
        m_bcFlatGradition.addControl(IDC_BUTTON_TYPE3DGRAD_FLAT_2, this);
        m_bcFlatGradition.addControl(IDC_BUTTON_TYPE3DGRAD_FLAT_3, this);
 
        ...
    }
 
//ÇØÁ¦(¹ÝµíÀÌ destorywindow¿¡¼­ clearÈ£ÃâÇØ¾ßµÊ) ÅÂÇö[2016/9/22]
    BOOL CButtonTestDlg::DestroyWindow()
    {
        m_bcFlatGradition.clear();
 
        return CDialog::DestroyWindow();
    }
 
 
*/