Product: MapX
Version: 3.x
Platform: All Win32 Platforms
Category: Code Samples
Summary:
The return value from the GetSize method of a COleFont.
Question:
When the font size is returned using 'COleFont::GetSize()', the function returns a structure as follows:
Struct CY{
Lo;
Hi;
int64;
}
An attempt is being made to control the title on the map immediately after the map control is created. It is difficult to find the definition of this structure in any of the help systems. The above structure was deduced from the VC++ debugger when the ellipse was expanded. The default font is 'Arial' and the default font size is 18. The value returned using the above function 'GetSize()' is 60000 decimal or 0xea60 hex. From the help system, the best reference is to two functions 'IFont::put_Size()' and 'IFont::get_Size()'. Put_Size() makes reference to a CY structure and Get_Size() retrieves the point size of the font expressed in a 64-bit CY variable.
Answer:
From the MFC documentation:
IFont::get_Size
Retrieves the point size of the font expressed in a 64-bit CY variable. The upper 32-bits of this value contains the integer point size and the lower 32-bits contains the fractional point size.
Last Modified: 04/30/1999 03:03:56 PM
|