bgfeditview.h

来自「用bcg库编写的java IDE 源码」· C头文件 代码 · 共 48 行

H
48
字号
// BGFEditView.h: interface for the CBGFEditView class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_BGFEDITVIEW_H__F88C9064_BB6C_4ACC_BCD3_28FECF5DDD78__INCLUDED_)
#define AFX_BGFEDITVIEW_H__F88C9064_BB6C_4ACC_BCD3_28FECF5DDD78__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "editlibExp.h"
#include "crystaleditviewex.h"
struct __DeclBound;

class EDITPADC_CLASS CBGFEditView : public CCrystalEditViewEx  
{
	DECLARE_DYNCREATE(CBGFEditView)

	BOOL    m_bEnableColapsingAllBlocks;
	BOOL    m_bEnableColapsingCode;
public:
	CBGFEditView();
	virtual ~CBGFEditView();

protected:
    virtual void OnDraw (CDC * pDC);  // overridden to draw this view



	//indenting

    DECLARE_MESSAGE_MAP ()
    afx_msg BOOL OnSetCursor(CWnd * pWnd, UINT nHitTest, UINT message);
    afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
    afx_msg void OnLButtonDown (UINT nFlags, CPoint point);

	
	//colapse node
	CRect  GetExpandNode(CPoint pt,int &nNodeIndex);
	void   GetLineRect(int nLineIndex,CRect &rcLine);
	virtual int GetMarginWidth();
	virtual void DrawColapseIndent(CDC * pdc, const CRect & rect, int nLineIndex);
	void DrawColapseIndentImpl(CDC * pdc, const CRect & rect,
		                       int nLineIndex,int nChar,BOOL bNode,BOOL bParentNode);
};

#endif // !defined(AFX_BGFEDITVIEW_H__F88C9064_BB6C_4ACC_BCD3_28FECF5DDD78__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?