How To Create a Nonblinking Caret (74607)
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK) 1.0
- Microsoft Windows Software Development Kit (SDK) 3.0
- Microsoft Windows Software Development Kit (SDK) 3.1
This article was previously published under Q74607 SUMMARY
The Microsoft Windows graphical environment is designed to provide a
blinking caret. However, using a timer and the SetCaretBlinkTime()
function, an application can "trick" the caret into not blinking.
Applications should not arbitrarily change the caret blink time and respect the setting that the user has chosen.
If you change the blink time, subsequently activated applications will use the modified blink time, even if you restore the previous blink time when you lose the keyboard focus or become inactive. This is due to the multithreaded environment, where deactivation of your application is not synchronized with the activation of another application. This feature allows the system to activate another application even if the current application is hung.
Modification Type: | Minor | Last Reviewed: | 7/11/2005 |
---|
Keywords: | kbCaret kbhowto KB74607 |
---|
|