ExpandEditCtrl.cpp
上传用户:weimei12
上传日期:2022-08-11
资源大小:185k
文件大小:1k
- // ExpandEditCtrl.cpp : implementation file
- //
- #include "stdafx.h"
- #include "SimpleMail.h"
- #include "ExpandEditCtrl.h"
- // CExpandEditCtrl
- IMPLEMENT_DYNAMIC(CExpandEditCtrl, CRichEditCtrl)
- CExpandEditCtrl::CExpandEditCtrl()
- {
- }
- CExpandEditCtrl::~CExpandEditCtrl()
- {
- }
- BEGIN_MESSAGE_MAP(CExpandEditCtrl, CRichEditCtrl)
- ON_WM_KEYDOWN()
- END_MESSAGE_MAP()
- // CExpandEditCtrl message handlers
- void CExpandEditCtrl::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
- {
- // TODO: Add your message handler code here and/or call default
- if (46 == nChar)
- {//DEL
- long nStartChar, nEndChar;
- GetSel(nStartChar, nEndChar);
- GetParent()->PostMessage(WM_DEL_FILE, nStartChar, 0);
- }
- CRichEditCtrl::OnKeyDown(nChar, nRepCnt, nFlags);
- }