-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPaneTreeCtrl.cpp
40 lines (30 loc) · 877 Bytes
/
PaneTreeCtrl.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
#include "pch.h"
#include "PaneTreeCtrl.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPaneTreeCtrl
CPaneTreeCtrl::CPaneTreeCtrl()
{
}
CPaneTreeCtrl::~CPaneTreeCtrl()
{
}
BEGIN_MESSAGE_MAP(CPaneTreeCtrl, CTreeCtrl)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPaneTreeCtrl message handlers
BOOL CPaneTreeCtrl::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
const BOOL bRes = CTreeCtrl::OnNotify(wParam, lParam, pResult);
NMHDR* pNMHDR = (NMHDR*)lParam;
ASSERT(pNMHDR != NULL);
if (NULL != pNMHDR && pNMHDR->code == TTN_SHOW && GetToolTips())
{
GetToolTips()->SetWindowPos(&wndTop, -1, -1, -1, -1, SWP_NOMOVE | SWP_NOACTIVATE | SWP_NOSIZE);
}
return bRes;
}