Windows 7 custom cursors8/23/2023 ![]() For example, when the cursor crosses over a hyperlink, the system changes the cursor from an arrow to a hand. As the cursor moves over different parts of windows or into different windows, the system (or an application) changes the appearance of the cursor. ![]() The system reflects the movement of the mouse by moving the cursor on the screen accordingly. The system sends the mouse message to the window that contains the hot spot or to the window that is capturing mouse input. When a mouse input event occurs, the mouse driver translates the event into an appropriate mouse message that includes the coordinates of the hot spot. The following images shows two cursors from a drawing program, in which hot spots are associated with the tip of the brush and the crosshair of the paint can. For example, typical hot spots are the pixel at the tip of an arrow-shaped cursor and the pixel in the middle of a crosshair-shaped cursor. The system tracks and recognizes this point as the position of the cursor. Typically, the hot spot is the focal point of the cursor. In the cursor, a pixel called the hot spot marks the exact screen location that is affected by a mouse event, such as clicking a mouse button. This overview provides information on the following topics: For example, a cursor must be monochrome for a VGA display. The only difference between them is that an image specified as a cursor must be in the format that the display can support. New displays, whose display drivers use the device-independent bitmap (DIB) engine, do support them.Ĭursors and icons are similar and can be used interchangeably in many situations. Old displays such as VGA do not support color or animated cursors. The type of cursor used on a particular computer system depends on the system's display. ![]() The following illustration shows several custom cursors.Ĭursors can be either monochrome or color, and either static or animated. An application replaces a default image by using the SetSystemCursor function.Īn application can use the GetIconInfo function to retrieve the current image for a cursor and can draw the cursor by using the DrawIconEx function.Ĭustom cursors are designed for use in a specific application and can be any design the developer defines. The user or an application can replace the default image associated with any standard cursor at any time. See Guidelines for information on recommended usage of standard cursors.Įach standard cursor has a corresponding default image associated with it. The SDK header files contain identifiers for the standard cursors - the identifiers begin with the IDC_ prefix: Value Windows provides a set of standard cursors that are available for any application to use at any time.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |