forked from keizi666/charu3
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
MyEditCtrl.cpp
40 lines (31 loc) · 832 Bytes
/
MyEditCtrl.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// MyEditCtrl.cpp : インプリメンテーション ファイル
//
#include "stdafx.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#include "MyEditCtrl.h"
/////////////////////////////////////////////////////////////////////////////
// CMyEditCtrl
CMyEditCtrl::CMyEditCtrl()
{
}
CMyEditCtrl::~CMyEditCtrl()
{
}
BEGIN_MESSAGE_MAP(CMyEditCtrl, CEdit)
//{{AFX_MSG_MAP(CMyEditCtrl)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMyEditCtrl メッセージ ハンドラ
BOOL CMyEditCtrl::PreTranslateMessage(MSG* pMsg)
{
if (pMsg->message == WM_KEYDOWN && pMsg->wParam == 0x41 && ::GetKeyState(VK_CONTROL) < 0) {
this->SetSel(0, -1);
return TRUE;
}
return CEdit::PreTranslateMessage(pMsg);
}