|
About Carets
An application uses the CreateCaret function to specify the parameters for a caret. Windows forms a caret by
inverting the pixel color within the rectangle specified by the caret's position,
width, and height. The width and height are specified in logical units;
therefore, the appearance of a caret is subject to the window's mapping mode.
After the caret is defined, an application uses the ShowCaret function to make the caret visible. When the caret appears, it automatically
begins flashing. To display a solid caret, Windows inverts every pixel in the
rectangle; to display a gray caret, Windows inverts every other pixel; to
display a bitmap caret, Windows inverts only the white bits of the bitmap.
The elapsed time, in milliseconds, required to invert the caret is called the blink time. The user can set the blink time of the caret using the Control Panel and
applications should respect the settings that the user has chosen. An application
can determine the caret's blink time by using the GetCaretBlinkTime function. If you are writing an application that allows the user to adjust
the blink time, such as a Control Panel applet, use the SetCaretBlinkTime function to set the rate of the blink time to a specified number of
milliseconds. The flash time is the elapsed time, in milliseconds, required to display, invert, and
restore the caret's display. The flash time of a caret is twice as much as the blink
time.
An application can determine the caret's position by using the GetCaretPos function. The position, in client coordinates, is copied to a POINT structure specified by a parameter in GetCaretPos. An application can move a caret in a window by using the SetCaretPos function. A window can move a caret only if it already owns the caret. SetCaretPos can move the caret whether it is visible or not.
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|