TrackMouseEvent() doesnt work

I can't get my mouse tracking to work. I created the structure and called the function, but when I run the program, it sucks up 40% of my CPU time trying to process--from what I can tell using breakpoints--WM_MOUSELEAVE messages. Although I set the TME_HOVER flag, that event never gets hit. In short, it's like the cursor is constantly leaving the window, even though it's clearly not. Is there something that could falsely make the cursor think it's leaving a window? Maybe a painting function?

Also in the WM_MOUSELEAVE event, I called TrackMouseEvent() again...it seems weird to me but MSDN said to do it.
[638 byte] By [MrEff] at [2007-11-20 7:54:30]
# 1 Re: TrackMouseEvent() doesnt work
Update: Turns out that TrackMouseEvent() goes in the window-entering code. It now doesn't eat up all my clock cycles. However, it still posts a WM_MOUSELEAVE event when the window is created even if my mouse is over where it's going to be. Is this normal? Can I stop it?
MrEff at 2007-11-9 13:29:54 >