SDC C-Project CF Review 프로그램
LYW
2021-10-15 e5fa774d622d6852fe8e1f033045aed221649108
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
#pragma once
 
 
// CPropertyGridCombo
#include <vector>
#define WM_PG_COMBOSELCHANGED WM_USER+487
 
class CPropertyGridCombo : public CWnd
{
    DECLARE_DYNAMIC(CPropertyGridCombo)
 
public:
    CPropertyGridCombo();
    virtual ~CPropertyGridCombo();
 
    BOOL Create(DWORD dwStyle, CRect& rc, CWnd* pParent, int nId);
    void SetFont(CFont* pFont, BOOL bRedraw = TRUE);
    void SetColors(COLORREF clrBack, COLORREF clrText, COLORREF clrFocus, COLORREF clrHilite);
 
    void AddString(const CString& strItem);
    void SetCurSel(int nItem);
 
public:
    afx_msg void OnPaint();
    afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
    afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
    afx_msg void OnMouseMove(UINT nFlags, CPoint point);
    afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
    afx_msg void OnDestroy();
    afx_msg void OnKillFocus(CWnd* pNewWnd);
    afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
    afx_msg UINT OnGetDlgCode();
 
protected:
    DECLARE_MESSAGE_MAP()
 
protected:
    std::vector<CString> m_Items;
    int m_nSelected;
 
    CFont* m_pFont;
    int m_line_height;
 
    bool m_bTracking;
 
    COLORREF m_clrBack;
    COLORREF m_clrText;
    COLORREF m_clrFocus;
    COLORREF m_clrHilite;
};