?? myedit.cpp
字號:
// MyEdit.cpp : implementation file
//
#include "stdafx.h"
#include "pictalk.h"
#include "MyEdit.h"
#include "pictalkDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMyEdit
CMyEdit::CMyEdit()
{
}
CMyEdit::CMyEdit(CPictalkDlg * pPictalk)
{
m_pPictalk=pPictalk;
}
CMyEdit::~CMyEdit()
{
}
BEGIN_MESSAGE_MAP(CMyEdit, CEdit)
//{{AFX_MSG_MAP(CMyEdit)
ON_WM_KEYDOWN()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMyEdit message handlers
void CMyEdit::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
// TODO: Add your message handler code here and/or call default
m_cs.Lock();
switch(nChar)
{
case VK_LEFT:
m_pPictalk->Move(1);
break;
case VK_RIGHT:
m_pPictalk->Move(2);
break;
case VK_UP:
m_pPictalk->Move(3);
break;
case VK_DOWN:
m_pPictalk->Move(4);
break;
default:
CEdit::OnKeyDown(nChar, nRepCnt, nFlags);
break;
}
m_cs.Unlock();
// CEdit::OnKeyDown(nChar, nRepCnt, nFlags);
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -