seems it only be called when have mouse event come in by CApplication::OnEvent.