![]() |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This method sets the shape of the pointer, the hot spot of the pointer, and the colors to use for the cursor if the cursor is multicolored. The GDI calls GPE::MovePointerseparately to move or hide the cursor.
SCODE GPE::SetPointerShape( GPESurf * pMask , GPESurf * pColorSurf , int xHot , int yHot , int cx , int cy );
Parameters
Remarks
The pMaskparameter points to a 1-bpp surface with a width of cxand a height of (2 cy). The top half defines the ANDmask for the pointer, and the lower half defines the XORmask. Taken together, these masks provide 2 bits of information for each pixel of the pointer image. The following truth table shows display results for different values in the ANDand XORmasks.
AND mask value | XOR mask value | Result displayed on screen |
---|---|---|
0 | 0 | Black. |
0 | 1 | White. |
1 | 0 | Transparent; pixel is unchanged. |
1 | 1 | Inverts the pixel color. |
These masks provide for a black-and-white image and enable transparency and inversion of pointer pixels.
If pColorSurfis not NULL, use the colors for the corresponding pixels of the color surface instead of the XORmask value for pixels where the ANDmask value is 0.
Requirements
Runs on | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 1.0 and later |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
Last updated on Tuesday, July 13, 2004