📄 sdbmsdemoview.h
字号:
// SdbmsDemoView.h : interface of the CSdbmsDemoView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_SDBMSDEMOVIEW_H__C0E8F05E_2DCB_11D5_A619_0040054B7F84__INCLUDED_)
#define AFX_SDBMSDEMOVIEW_H__C0E8F05E_2DCB_11D5_A619_0040054B7F84__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "SdbmsDemoDoc.h"
#include "crysedit\\CCrystalEditView.h"
#include "crysedit\\CCrystalTextBuffer.h"
class CSdbmsDemoView : public CCrystalEditView
{
public: // create from serialization only
CSdbmsDemoView();
DECLARE_DYNCREATE(CSdbmsDemoView)
// Attributes
public:
CSdbmsDemoDoc* GetDocument();
virtual CCrystalTextBuffer *LocateTextBuffer();
protected:
virtual COLORREF GetColor(int nColorIndex);
virtual DWORD ParseLine(DWORD dwCookie, int nLineIndex, TEXTBLOCK *pBuf, int &nActualItems);
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSdbmsDemoView)
public:
virtual void OnInitialUpdate();
//}}AFX_VIRTUAL
// Implementation
public:
// void UpdateIndicatorPosition(CCmdUI* pCmdUI);
virtual ~CSdbmsDemoView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CSdbmsDemoView)
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnDebugExecute();
afx_msg void OnUpdateDebugExecute(CCmdUI* pCmdUI);
afx_msg void OnDebugGo();
afx_msg void OnUpdateDebugGo(CCmdUI* pCmdUI);
afx_msg void OnDebugBreakpoint();
afx_msg void OnUpdateDebugBreakpoint(CCmdUI* pCmdUI);
afx_msg void OnDebugRestart();
afx_msg void OnUpdateDebugRestart(CCmdUI* pCmdUI);
afx_msg void OnDebugStop();
afx_msg void OnUpdateDebugStop(CCmdUI* pCmdUI);
afx_msg void OnDebugShowStatement();
afx_msg void OnUpdateDebugShowStatement(CCmdUI* pCmdUI);
afx_msg void OnDebugStepOver();
afx_msg void OnUpdateDebugStepOver(CCmdUI* pCmdUI);
afx_msg void OnDebugRunToCursor();
afx_msg void OnUpdateDebugRunToCursor(CCmdUI* pCmdUI);
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
afx_msg void OnEditDelete();
afx_msg void OnEditDeleteBack();
afx_msg void OnUpdateIndicatorPosition(CCmdUI* pCmdUI);
DECLARE_MESSAGE_MAP()
private:
CString GetCurValidLine();
void Init();
void AdjustBreakpoints();
void RunToLine(int nLine);
void Trim(); //去掉空行及注释行
int m_nCurLine;
BOOL m_bExecuting; //SQL语句是否正在执行
BOOL m_bBeginDebug; //开始运行
};
#ifndef _DEBUG // debug version in SdbmsDemoView.cpp
inline CSdbmsDemoDoc* CSdbmsDemoView::GetDocument()
{ return (CSdbmsDemoDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SDBMSDEMOVIEW_H__C0E8F05E_2DCB_11D5_A619_0040054B7F84__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -