📄 drawchipview.h
字号:
// DrawChipView.h : interface of the CDrawChipView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_DRAWCHIPVIEW_H__CFFDB89E_7E6A_4A54_99FA_8A1F275DBC9C__INCLUDED_)
#define AFX_DRAWCHIPVIEW_H__CFFDB89E_7E6A_4A54_99FA_8A1F275DBC9C__INCLUDED_
#include "OptionSheet.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//##ModelId=3E18E0D5024E
class CDrawChipView : public CScrollView
{
protected: // create from serialization only
//##ModelId=3E18E0D50250
CDrawChipView();
DECLARE_DYNCREATE(CDrawChipView)
// Attributes
public:
//##ModelId=3E18E0D6008C
CDrawChipDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDrawChipView)
public:
//##ModelId=3E18E0D70046
virtual void OnDraw(CDC* pDC); // overridden to draw this view
//##ModelId=3E18E0D80078
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//##ModelId=3E18E0D900A0
virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
protected:
//##ModelId=3E18E0D90334
virtual void OnInitialUpdate(); // called first time after construct
//##ModelId=3E18E0DA02EE
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
//##ModelId=3E18E0DB0276
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
//##ModelId=3E18E0DC01FE
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
//##ModelId=3E18E0DD01C3
CRectTracker m_RectTracker;
//##ModelId=3E18E0DD01C7
BOOL m_bCrSocket;
//##ModelId=3E18E0DD01C8
BOOL m_bPaSocket;
//##ModelId=3E18E0DD01F4
BOOL m_bIcChip;
//##ModelId=3E18E0DD0230
void AddChipToList(CObject *pObject,CObList *pObList);
//##ModelId=3E18E0DD0233
BOOL m_bInductor;
//##ModelId=3E18E0DD0234
BOOL m_bDiode;
//##ModelId=3E18E0DD0262
BOOL m_bSwitch;
//##ModelId=3E18E0DD0263
BOOL m_bPower;
//##ModelId=3E18E0DD029E
void SetBeSelLineWidth(CObList *pObList,int LineWidth);
//##ModelId=3E18E0DD030C
void DeleteBeSel(CObList *pObList);
//##ModelId=3E18E0DD0370
void SetBeSelColor(CObList *pObList,COLORREF color);
//##ModelId=3E18E0DD03DE
BOOL m_bCompacity;
//##ModelId=3E18E0DD03DF
POSITION GetFirstSelPos(CObList *pObList);
//##ModelId=3E18E0DE00A0
BOOL m_bTransistor;
//##ModelId=3E18E0DE00D2
void SetAllChipNotIsSel(CObList *pObList);
//##ModelId=3E18E0DE01AE
BOOL m_bNothing;
//##ModelId=3E18E0DE01AF
BOOL m_bResistor;
//##ModelId=3E18E0DE01EA
int BeSelectedNum(CObList *pObList);
//##ModelId=3E18E0DF0136
BOOL IsInChipRect(CPoint point, CObList *pObList, POSITION *pCurPos, BOOL *pIsSel);
//##ModelId=3E18E0E000BE
virtual ~CDrawChipView();
#ifdef _DEBUG
//##ModelId=3E18E0E100F0
virtual void AssertValid() const;
//##ModelId=3E18E0E200AA
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CDrawChipView)
//##ModelId=3E18E0E30032
afx_msg void OnDrawResistor();
//##ModelId=3E18E0E30034
afx_msg void OnDrawDiode();
//##ModelId=3E18E0E30036
afx_msg void OnDrawInductor();
//##ModelId=3E18E0E30065
afx_msg void OnDrawPower();
//##ModelId=3E18E0E30067
afx_msg void OnDrawTrasistor();
//##ModelId=3E18E0E30069
afx_msg void OnDrawChip();
//##ModelId=3E18E0E300A1
afx_msg void OnDrawCrossSocket();
//##ModelId=3E18E0E300A3
afx_msg void OnDrawParallelSocket();
//##ModelId=3E18E0E300A5
afx_msg void OnDrawSwitch();
//##ModelId=3E18E0E300D2
afx_msg void OnDrawCompacity();
//##ModelId=3E18E0E300D4
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
//##ModelId=3E18E0E300D8
afx_msg void OnUpdateDrawResistor(CCmdUI* pCmdUI);
//##ModelId=3E18E0E3010E
afx_msg void OnUpdateDrawPower(CCmdUI* pCmdUI);
//##ModelId=3E18E0E30111
afx_msg void OnDrawNothing();
//##ModelId=3E18E0E30113
afx_msg void OnUpdateDrawNothing(CCmdUI* pCmdUI);
//##ModelId=3E18E0E30116
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
//##ModelId=3E18E0E30142
afx_msg void OnUpdateDrawTrasistor(CCmdUI* pCmdUI);
//##ModelId=3E18E0E30145
afx_msg void OnChipProperty();
//##ModelId=3E18E0E3017D
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
//##ModelId=3E18E0E30181
afx_msg void OnChipPopupProperty();
//##ModelId=3E18E0E301AE
afx_msg void OnUpdateDrawCompacity(CCmdUI* pCmdUI);
//##ModelId=3E18E0E301B1
afx_msg void OnEditColor();
//##ModelId=3E18E0E301B3
afx_msg void OnEditDelete();
//##ModelId=3E18E0E301B5
afx_msg void OnEditLine1();
//##ModelId=3E18E0E301EA
afx_msg void OnEditLine2();
//##ModelId=3E18E0E301EC
afx_msg void OnEditLine3();
//##ModelId=3E18E0E3021C
afx_msg void OnEditCopy();
//##ModelId=3E18E0E3021E
afx_msg void OnEditPaste();
//##ModelId=3E18E0E30220
afx_msg void OnUpdateDrawSwitch(CCmdUI* pCmdUI);
//##ModelId=3E18E0E30223
afx_msg void OnUpdateDrawDiode(CCmdUI* pCmdUI);
//##ModelId=3E18E0E30259
afx_msg void OnUpdateDrawInductor(CCmdUI* pCmdUI);
//##ModelId=3E18E0E3025C
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
//##ModelId=3E18E0E3028D
afx_msg void OnUpdateDrawChip(CCmdUI* pCmdUI);
//##ModelId=3E18E0E30290
afx_msg void OnUpdateDrawCrossSocket(CCmdUI* pCmdUI);
//##ModelId=3E18E0E30293
afx_msg void OnUpdateDrawParallelSocket(CCmdUI* pCmdUI);
//##ModelId=3E18E0E302C8
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
//##ModelId=3E18E0E302F8
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
//##ModelId=3E18E0E302FC
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//##ModelId=3E18E0E302FF
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
//##ModelId=3E18E0E30337
afx_msg void OnCancelMode();
//##ModelId=3E18E0E30339
afx_msg void OnEditBringtofront();
//##ModelId=3E18E0E30367
afx_msg void OnEditSendtoback();
//##ModelId=3E18E0E30369
afx_msg void OnOption();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
//##ModelId=3E18E0E303A2
COLORREF m_rgbBoardColor;
//##ModelId=3E18E0E303A3
COLORREF m_rgbFillColor;
//##ModelId=3E18E0E303D4
COLORREF m_rgbBackColor;
//##ModelId=3E18E0E303D6
COptionSheet m_sheetOption;
};
#ifndef _DEBUG // debug version in DrawChipView.cpp
inline CDrawChipDoc* CDrawChipView::GetDocument()
{ return (CDrawChipDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DRAWCHIPVIEW_H__CFFDB89E_7E6A_4A54_99FA_8A1F275DBC9C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -