ColReadOnlyEdit.h
上传用户:lcxiong207
上传日期:2010-02-24
资源大小:31k
文件大小:2k
- #if !defined(AFX_COLREADONLYEDIT_H__298E816B_C7D3_418F_9379_9AD8B8041EB5__INCLUDED_)
- #define AFX_COLREADONLYEDIT_H__298E816B_C7D3_418F_9379_9AD8B8041EB5__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // ColReadOnlyEdit.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CColReadOnlyEdit window
- class CColReadOnlyEdit : public CEdit
- {
- // Construction
- public:
- CColReadOnlyEdit();
- CBrush m_Brush;
- CString m_Text;
- COLORREF m_BackColor;
- COLORREF m_TextColor;
- BOOL bReadOnly;
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CColReadOnlyEdit)
- public:
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- virtual BOOL OnChildNotify(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pLResult);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- BOOL GetEditReadOnly();
- void SetEditReadOnly(BOOL bReadOnly);
- COLORREF GetEditBkColor();
- COLORREF GetEditTextColor();
- void SetEditTextColor(COLORREF textColor);
- void SetEditBkColor(COLORREF bkColor);
- virtual ~CColReadOnlyEdit();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CColReadOnlyEdit)
- afx_msg void OnPaint();
- afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_COLREADONLYEDIT_H__298E816B_C7D3_418F_9379_9AD8B8041EB5__INCLUDED_)