SDC C-Project CF Review 프로그램
LYW
2021-09-14 ffe71aadfdcb4a9ea2ac4d8d320983d42ef3cad5
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#pragma once
#include "afxcmn.h"
#include <map>
 
struct _GroupCtrlOption
{
    _GroupCtrlOption()
    {
        nStyle=1;
        nStyleSub=0;
 
        {
            nResourceID = 136;
            rectMargin.SetRect(50,50,10,10);
        }
 
 
        //clrTitle = RGB(175,210,255);
        clrTitle = RGB(83,156,255);
        clrBack = RGB(227, 239, 255);
        clrOutline = RGB(104, 147, 207);
 
        clrFontNormal = RGB(0,0,0);
        clrFontPush = RGB(0,0,0);
        clrFontMouseOver = RGB(128, 128, 128);
        clrFontDisable = RGB(150,150,150);
        clrTransparency = 0xFFFFFE;
 
        bTextEnable = TRUE;
        nTextPosX = 20;
        nTextPosY = 6;
        strFontName = "";
        nFontSize = 20;
 
        bTextShadow = FALSE;
        nTextShadowX = nTextShadowY=1;
 
        nTitleHeight = 30;
    }
    int nStyle;//0:À̹ÌÁö ±â¹Ý, 1:µå·Î¿ì ±â¹Ý
    int nStyleSub;//
 
    //À̹ÌÁö ±â¹Ý º¯¼öµé
    int nResourceID;
    CRect rectMargin;
 
 
    COLORREF clrTitle;
    COLORREF clrBack;
    COLORREF clrOutline;
    COLORREF clrTransparency;
 
 
    //±ÛÀÚÃâ·Â°ü·Ã ÅÂÇö[2016/9/19]
    bool bTextEnable;
    CString strFontName;
    int nFontSize;
    int nTextPosX, nTextPosY; //Á¤°¡¿îµ¥ ±âÁØÀ¸·Î ±ÛÀÚÇ¥½Ã OFFSET
 
    COLORREF clrFontNormal;
    COLORREF clrFontPush;
    COLORREF clrFontMouseOver;
    COLORREF clrFontDisable;
 
    //ÆùÆ® ±×¸²ÀÚ Ãâ·Â ÅÂÇö[2016/9/19]
    bool bTextShadow;
    int nTextShadowX, nTextShadowY;
 
    int nTitleHeight;
    COLORREF clrReserved[16];//±×¸®´Â ½ºÅ¸ÀÏ¿¡ µû¶ó¼­ ¾Ë¾Æ¼­!!
};
 
class CakGroupCtrl
{
public:
    CakGroupCtrl(void);
    ~CakGroupCtrl(void);
 
    void clear(); //DestroyWindow()¿¡¼­ clearÈ£ÃâÇØ¾ßµÊ!!
 
    void setCtrlOption(_GroupCtrlOption CtrlOption);
    _GroupCtrlOption getCtrlOption(){return m_CtrlOption;};
 
    void addControl(int nIDCtl, CWnd* pParent);
 
 
    CStatic* GetDlgItem(int nIDCtl);
 
protected:
    std::map<int,void*> m_mapControls;
    _GroupCtrlOption m_CtrlOption;
};