SRGStatic Class
class SRGStatic
This static control draws a layout chart in its window area. The m_pLayout veriable points to an array of a SRGLayoutInfo struct that stores what kind of component to drawn, the component measurement, border style, shadow style, fill style(only CX_NO_FILL, CX_SOLID_FILL all other style will fall to CX_SOLID_FILL), and the component rectangle. It only handle 4 kind of components, i.e. SRGraphDisplay, SRGraphTitle, SRGraphBackground, SRGraphLegend. They are filled with the 4 different key color. There can be more than component of the same kind.Defined in: SRGWzDisplay.h
Class Members
SRGraph* m_pGraph
Pointer to the graph that will be drawn in this window area.
CPtrArray* m_pLayout
Pointer to the layout information used to construct the components
COLORREF m_Colors[4]
The filling color for the 4 differnt kind of component.
BOOL m_bHasFocusRect
Flag that tells if a focus rectangle has been drawn on this control.
virtual void DrawFocusRect(BOOL bDraw)
Draw or erase the focus rectangle