SRGWizView Class

class SRGWizView

Special view class for internal use by the Wizard

Defined in: SRGWizView.h

Class Members

CHART_API virtual ~SRGWizView()

Constructor

CHART_API virtual ~SRGWizView()

Destructor

CHART_API virtual void OnDraw(CDC* pDC)

Draws the chart, tracking component, and placement grid

BOOL m_bIsTracking

Flag if it is in the tracking mode

SRGRectTracker m_Tracker

Tracking rectangle for component dragging

BOOL m_bShowGrid

Semaphore indicating if user want to draw an alignment grid

CHART_API virtual void AssertValid() const

Debug code

CHART_API virtual void Dump(CDumpContext& dc) const

Debug code

CHART_API afx_msg void OnLButtonDown(UINT nFlags, CPoint point)

Left button down + shift key initiates tracking

CHART_API afx_msg void OnLButtonUp(UINT nFlags, CPoint point)

Terminates tracking

CHART_API afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)

Changes cursor while tracking

CHART_API afx_msg void OnStopTracking()

Command handler to stop tracking when in Tracking mode

CHART_API afx_msg void OnWizardCopy()

Copies the graph to the clipboard as a bitmap

CHART_API afx_msg void OnSaveLayout()

Command handler to save the layout for future use

CHART_API afx_msg void OnWizardPrint()

Command handler to print the graph from the wizard

CHART_API afx_msg void OnContextMenu(CWnd* pWnd, CPoint point)

Bring up the context menu in the view area when user right click mouse

CHART_API afx_msg void OnSaveAsDib()

Handler for the "Save as DIB" menu

CHART_API afx_msg void OnSaveAsJpeg()

Handler for the "Save as JPEG" menu

CHART_API afx_msg LRESULT OnTrackingRectChanged(WPARAM wParam, LPARAM lParam)

Message handler called when tracking rect changed size

CHART_API afx_msg LRESULT OnAdjustTrackingRect(WPARAM wParam, LPARAM lParam)

Message handler called when tracking rect adjust size

CHART_API virtual SRGraphComponent* GetTrackingComponent(CPoint point)

Finding the top most component under the mouse.

CHART_API virtual void SnapToGrid(CRect* pRect)

Addjust the rectangle to align with the alignment grid

CHART_API virtual void DrawGrid(BOOL bShow = TRUE)

Draw or erase the alignment grid