You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
511 B
C++
32 lines
511 B
C++
|
|
#include "stdafx.h"
|
|
#include "DlgPane.h"
|
|
#include "afxdialogex.h"
|
|
|
|
|
|
IMPLEMENT_DYNAMIC(CDlgPane, CDialogEx)
|
|
|
|
CDlgPane::CDlgPane(CWnd* pParent /*=NULL*/)
|
|
: CDialogEx(GetIDD(), pParent)
|
|
{
|
|
|
|
}
|
|
CDlgPane::~CDlgPane()
|
|
{
|
|
}
|
|
//截获一部分键盘输入传递给view
|
|
BOOL CDlgPane::PreTranslateMessage(MSG* pMsg)
|
|
{
|
|
if(pMsg->message==WM_KEYDOWN)
|
|
{
|
|
char c = pMsg->wParam;
|
|
if(c==VK_RETURN || c==VK_ESCAPE)
|
|
{
|
|
return TRUE;
|
|
}
|
|
}
|
|
return CDialogEx::PreTranslateMessage(pMsg);
|
|
}
|
|
|
|
|