Alientech 0.01
An extendable game engine
C:/Alientech/AlienPlanets/ViewTree.cpp
Go to the documentation of this file.
00001 
00002 #include "stdafx.h"
00003 #include "ViewTree.h"
00004 
00005 #ifdef _DEBUG
00006 #define new DEBUG_NEW
00007 #undef THIS_FILE
00008 static char THIS_FILE[] = __FILE__;
00009 #endif
00010 
00012 // CViewTree
00013 
00014 CViewTree::CViewTree()
00015 {
00016 }
00017 
00018 CViewTree::~CViewTree()
00019 {
00020 }
00021 
00022 BEGIN_MESSAGE_MAP(CViewTree, CTreeCtrl)
00023 END_MESSAGE_MAP()
00024 
00026 // CViewTree message handlers
00027 
00028 BOOL CViewTree::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
00029 {
00030         BOOL bRes = CTreeCtrl::OnNotify(wParam, lParam, pResult);
00031 
00032         NMHDR* pNMHDR = (NMHDR*)lParam;
00033         ASSERT(pNMHDR != NULL);
00034 
00035         if (pNMHDR && pNMHDR->code == TTN_SHOW && GetToolTips() != NULL)
00036         {
00037                 GetToolTips()->SetWindowPos(&wndTop, -1, -1, -1, -1, SWP_NOMOVE | SWP_NOACTIVATE | SWP_NOSIZE);
00038         }
00039 
00040         return bRes;
00041 }