Hi,
I am using Microsof Visual Studio 2005 and Windows Xp SP3. I implemented a
"drop down tree" control using a CComboBox and a CTreeCtrl. Everything is fine
except one thing is bothering me. What if the tree is dropped down, and another
window pops-up to the foreground. I want to hide my tree control when any such
thing happens. Is there any way for this, I tried trapping the WM_KILLFOCUS,
WM_WINDOWSPOSCHANGED messages but the tree control doen't seems to be getting
these messages when another window pops up and the tree is moved back in the z
order (I checked this by pressing the F1 key to raise the help dialog of my
application). The tree is moved back but is still there.
I can check for F1 and other keys for my application, but what if some other
application say a chat window just pops-up.
I tried to find any message issued when a window is moved back in zorder, but
couldn't find any. If you have any idea how should I proceed please help me.
If you have any doubts please let me know.
Thanks
chetan.
-chetan verma
final year B-Tech(CSE)
Indian School of Mines
Dhanbad
India
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+919835108609