www.pudn.com > MFCVista.rar > IEdit.h



#pragma once
//±à¼­¿ò¿Ø¼þ
#include "Iontrlpos.h"
class AFX_EXT_CLASS CIEdit : public CEdit,public CIontrlPos
{
protected:
BOOL m_bReadOnly;
CBrush m_bshBackGround;
CFont m_fntSys;
BOOL m_bFilter;
BOOL m_bDigitFilter;
public:
CIEdit();
virtual ~CIEdit();
protected:
virtual void PreSubclassWindow();
afx_msg void OnNcPaint();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg HBRUSH CtlColor(CDC* /*pDC*/, UINT /*nCtlColor*/);
DECLARE_MESSAGE_MAP()
protected:
virtual void DrawFrame(CDC *pDC);
public:
COLORREF m_clrRect;//Íâ¿òÑÕÉ«
COLORREF m_clrTextColor;
CRect m_rctFrm;//Íâ¿ò
void SetAtt(BOOL bBold=0,BOOL bReadOnly=0,COLORREF clrTextColor=0,COLORREF RectClr=RGB(104,137,166));
void SetReadOnly(BOOL bReadOnly=1);
void SetBold(BOOL bBold=1);
BOOL ShowWindow(int iCmdShow);
void FilterPathChar(BOOL bFilter);
void FilterDigit(BOOL bDigitFilter);
};