After partying 10th anniversary of this problem I finally found a solution for it.

Short story: call CWnd::Default from your HDN_ENDTRACK-handler

Long story:
Just recently I had the same...