用HideCaret这个API吧,真正的解决之道!The HideCaret function removes the caret from the screen. Hiding a caret does not destroy its current shape or invalidate the insertion point. BOOL HideCaret( HWND hWnd // handle to the window with the caret ); ParametershWndIdentifies the window that owns the caret. If this parameter is NULL, HideCaret searches the current task for the window that owns the caret.
);
ParametershWndIdentifies the window that owns the caret. If this parameter is NULL, HideCaret searches the current task for the window that owns the caret.