Because the cursor is added on m_cursorPos above and prevents the hint text vom being re-added if the control loses focus with an empty string. Also the cursor shouldn't be visible anyway if the control doesn't have focus.