?? listedit.cpp
字號:
// ListEdit.cpp : implementation file
//
#include "stdafx.h"
//#include "TextInList.h"
#include "ListEdit.h"
//#include "GridList.h"
#include "ComboListCtrl.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CListEdit
CListEdit::CListEdit()
{
}
CListEdit::~CListEdit()
{
}
BEGIN_MESSAGE_MAP(CListEdit, CEdit)
//{{AFX_MSG_MAP(CListEdit)
ON_WM_KILLFOCUS()
ON_WM_CHAR()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CListEdit message handlers
void CListEdit::OnKillFocus(CWnd* pNewWnd)
{
// CGridList * temp = (CGridList *)GetParent();
CComboListCtrl * temp = (CComboListCtrl *)GetParent();
if(temp)
{
temp->DisposeEdit();
}
}
void CListEdit::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)
{
// TODO: Add your message handler code here and/or call default
//CEdit::OnChar(nChar, nRepCnt, nFlags);
if (48 <= nChar && 57 >= nChar || nChar == 0x08)
{
CEdit::OnChar(nChar, nRepCnt, nFlags);
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -