提交 | 用户 | age
|
0ed438
|
1 |
|
Q |
2 |
#include "pch.h"
|
|
3 |
#include "framework.h"
|
|
4 |
#include "ViewTree.h"
|
|
5 |
|
|
6 |
#ifdef _DEBUG
|
|
7 |
#define new DEBUG_NEW
|
|
8 |
#undef THIS_FILE
|
|
9 |
static char THIS_FILE[] = __FILE__;
|
|
10 |
#endif
|
|
11 |
|
|
12 |
/////////////////////////////////////////////////////////////////////////////
|
|
13 |
// CViewTree
|
|
14 |
|
|
15 |
CViewTree::CViewTree() noexcept
|
|
16 |
{
|
|
17 |
}
|
|
18 |
|
|
19 |
CViewTree::~CViewTree()
|
|
20 |
{
|
|
21 |
}
|
|
22 |
|
|
23 |
BEGIN_MESSAGE_MAP(CViewTree, CTreeCtrl)
|
|
24 |
END_MESSAGE_MAP()
|
|
25 |
|
|
26 |
/////////////////////////////////////////////////////////////////////////////
|
|
27 |
// CViewTree 消息处理程序
|
|
28 |
|
|
29 |
BOOL CViewTree::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
|
|
30 |
{
|
|
31 |
BOOL bRes = CTreeCtrl::OnNotify(wParam, lParam, pResult);
|
|
32 |
|
|
33 |
NMHDR* pNMHDR = (NMHDR*)lParam;
|
|
34 |
ASSERT(pNMHDR != nullptr);
|
|
35 |
|
|
36 |
if (pNMHDR && pNMHDR->code == TTN_SHOW && GetToolTips() != nullptr)
|
|
37 |
{
|
|
38 |
GetToolTips()->SetWindowPos(&wndTop, -1, -1, -1, -1, SWP_NOMOVE | SWP_NOACTIVATE | SWP_NOSIZE);
|
|
39 |
}
|
|
40 |
|
|
41 |
return bRes;
|
|
42 |
}
|