BOOL GetCellSize( |
|
LPSIZE lpCellSize |
|
); |
BOOL GetCellSize( |
|
LPINT lpnWidth |
|
|
LPINT lpnHeight |
|
); |
The GetCellSize method returns the size of a character cell
in pixels.
Parameters
- lpCellSize
- A pointer to a SIZE structure which will contain the size of a
character cell in pixels when the method returns.
- lpnWidth
- A pointer to an integer which will contain the width of a
character cell in pixels when the method returns.
- lpnHeight
- A pointer to an integer which will contain the height of a
character cell in pixels when the method returns.
Return Value
If the method succeeds, the return value is non-zero. If the
method fails, it returns zero. Failure typically indicates that the
virtual display has not been created.
Remarks
The GetCellSize method is used to determine the size of a
character cell in the display. This can be useful when the
application needs to determine where a display cell is physically
located within the virtual display window.
To convert between display and window coordinates, use the
ConvertPos method.
Requirements
Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: csnvtv10.lib
See Also
ConvertPos,
GetCell
|