Caret microsoft




















I'm new to all this lap top internet use. What is caret browsing? Should I enable it? This thread is locked. You can follow the question or vote as helpful, but you cannot reply to this thread. I have the same question Report abuse. Details required :. Cancel Submit. Don Varnau Volunteer Moderator. If hBitmap is a bitmap handle, CreateCaret ignores this parameter. The height of the caret, in logical units. If this parameter is zero, the height is set to the system-defined window border height.

If the function fails, the return value is zero. To get extended error information, call GetLastError. The nWidth and nHeight parameters specify the caret's width and height, in logical units; the exact width and height, in pixels, depend on the window's mapping mode. CreateCaret automatically destroys the previous caret shape, if any, regardless of the window that owns the caret. The caret is hidden until the application calls the ShowCaret function to make the caret visible.

The system provides one caret per queue. A window should create a caret only when it has the keyboard focus or is active.

To create a caret based on a bitmap, you must specify a bitmap handle when using CreateCaret. You can use a graphics application to create the bitmap and a resource compiler to add the bitmap to your application's resources.

Your application can then use the LoadBitmap function to load the bitmap handle. For example, you could replace the CreateCaret line in the preceding example with the following lines to create a bitmap caret. For more information about bitmaps, see Bitmaps. If your application specifies a bitmap handle, CreateCaret ignores the width and height parameters. The bitmap defines the size of the caret. When your application is finished drawing, redisplay the caret by using the ShowCaret function.

If your application calls the HideCaret function several times without calling ShowCaret , the caret will not be displayed until the application also calls ShowCaret the same number of times.

Your application should destroy the caret while processing this message by using the DestroyCaret function.



0コメント

  • 1000 / 1000