summaryrefslogtreecommitdiff
path: root/src/T2DLL/CEditWFocus.cpp
blob: 0892aaddcfc01249dae491407477b6a17885f7b6 (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
#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);
}