SRGWizView Class
class SRGWizView
Special view class for internal use by the WizardDefined in: SRGWizView.h
Class Members
virtual ~SRGWizView()
Constructor
virtual ~SRGWizView()
Destructor
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
virtual void AssertValid() const
Debug code
virtual void Dump(CDumpContext& dc) const
Debug code
afx_msg void OnLButtonDown(UINT nFlags, CPoint point)
Left button down + shift key initiates tracking
afx_msg void OnLButtonUp(UINT nFlags, CPoint point)
Terminates tracking
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
Changes cursor while tracking
afx_msg void OnStopTracking()
Command handler to stop tracking when in Tracking mode
afx_msg void OnWizardCopy()
Copies the graph to the clipboard as a bitmap
afx_msg void OnSaveLayout()
Command handler to save the layout for future use
afx_msg void OnWizardPrint()
Command handler to print the graph from the wizard
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point)
Bring up the context menu in the view area when user right click mouse
afx_msg void OnSaveAsDib()
Handler for the "Save as DIB" menu
afx_msg void OnSaveAsJpeg()
Handler for the "Save as JPEG" menu
afx_msg LRESULT OnTrackingRectChanged(WPARAM wParam, LPARAM lParam)
Message handler called when tracking rect changed size
afx_msg LRESULT OnAdjustTrackingRect(WPARAM wParam, LPARAM lParam)
Message handler called when tracking rect adjust size
virtual SRGraphComponent* GetTrackingComponent(CPoint point)
Finding the top most component under the mouse.
virtual void SnapToGrid(CRect* pRect)
Addjust the rectangle to align with the alignment grid
virtual void DrawGrid(BOOL bShow = TRUE)
Draw or erase the alignment grid