?? autoteachedit.cpp
字號:
// AutoTeachEdit.cpp : implementation file
//
#include "stdafx.h"
#include "alfa.h"
#include "AutoTeachEdit.h"
#include "AutoTeach.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAutoTeachEdit
CAutoTeachEdit::CAutoTeachEdit()
{
m_clrBack=RGB(255,255,0); // yellow background
m_brush.CreateSolidBrush(m_clrBack);
}
CAutoTeachEdit::~CAutoTeachEdit()
{
}
BEGIN_MESSAGE_MAP(CAutoTeachEdit, CEdit)
//{{AFX_MSG_MAP(CAutoTeachEdit)
ON_WM_CTLCOLOR_REFLECT()
ON_WM_LBUTTONDOWN()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAutoTeachEdit message handlers
HBRUSH CAutoTeachEdit::CtlColor(CDC* pDC, UINT nCtlColor)
{
// TODO: Change any attributes of the DC here
pDC->SetBkColor(m_clrBack);
return (HBRUSH)m_brush.GetSafeHandle() ;
// TODO: Return a non-NULL brush if the parent's handler should not be called
}
void CAutoTeachEdit::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CEdit::OnLButtonDown(nFlags, point);
if(GetStyle() & ES_READONLY) return;
CString str;
GetWindowText(str);
CAutoTeach * parent=(CAutoTeach *)(GetParent()->GetParent());
parent->dlgautoteachkey->num=str;
parent->dlgautoteachkey->edt=this;
parent->dlgautoteachkey->ShowWindow(TRUE);
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -