blob: 8647f2dae07a86d283ca9fdb2a638ac447d9f038 (
plain)
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
|
#include "StdAfx.h"
#define DONT_INCLUDE_AFXTEMPL
#include "CEditWFocus.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CEditWFocus::CEditWFocus() {
}
/*virtual*/ CEditWFocus::~CEditWFocus() {
}
BEGIN_MESSAGE_MAP(CEditWFocus, CWnd)
ON_WM_KILLFOCUS()
ON_WM_SETFOCUS()
END_MESSAGE_MAP()
afx_msg void CEditWFocus::OnKillFocus(CWnd* pNewWnd) {
CWnd::OnKillFocus(pNewWnd);
GetParent()->SendMessage(WM_KILLFOCUS);
}
afx_msg void CEditWFocus::OnSetFocus(CWnd* pOldWnd) {
CWnd::OnSetFocus(pOldWnd);
GetParent()->SendMessage(WM_SETFOCUS);
}
|