SDC C-Project CF Review 프로그램
LYW
2021-07-08 e10b8c2a3f6ee6b639dbb49ff6635d0657531d1e
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
#pragma once
 
 
// CPropertyGridInPlaceEdit
#define WM_PG_ENDLABELEDIT WM_USER+488
 
class CPropertyGridInPlaceEdit : public CEdit
{
    DECLARE_DYNAMIC(CPropertyGridInPlaceEdit)
 
public:
    CPropertyGridInPlaceEdit(CWnd* pParent, CRect& rect, DWORD dwStyle, UINT nID, CString sInitText);
    virtual ~CPropertyGridInPlaceEdit();
    void SetColors(COLORREF clrBack, COLORREF clrText);
 
public:
    void CancelEdit();
    void EndEdit();
 
public:
    virtual BOOL PreTranslateMessage(MSG* pMsg);
 
protected:
    //{{AFX_MSG(CPropertyGridInPlaceEdit)
    afx_msg void OnKillFocus(CWnd* pNewWnd);
    afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
    afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
    afx_msg UINT OnGetDlgCode();
    afx_msg HBRUSH CtlColor ( CDC* pDC, UINT nCtlColor );
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP()
 
private:
    CString m_sInitText;
    BOOL    m_bExitOnArrows;
    CRect   m_Rect;
 
    COLORREF m_clrBack;
    COLORREF m_clrText;
    CBrush  m_Brush;
};