-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPaneTreeCtrl.cpp
More file actions
32 lines (24 loc) · 804 Bytes
/
PaneTreeCtrl.cpp
File metadata and controls
32 lines (24 loc) · 804 Bytes
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
#include "pch.h"
#include "PaneTreeCtrl.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// 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;
}