⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gshiedit.h

📁 一种简单的股票软件源代码,编译后可以实时显示证券行情
💻 H
字号:
#if !defined(AFX_GSHIEDIT_H__DA25FEE8_09DC_40F1_8A71_5F47498F80F4__INCLUDED_)
#define AFX_GSHIEDIT_H__DA25FEE8_09DC_40F1_8A71_5F47498F80F4__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GShiEdit.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CGShiEdit dialog

class CGShiEdit : public CDialog
{
// Construction
public:
	CGShiEdit(CWnd* pParent = NULL);   // standard constructor

	BOOL m_isFirst;
	void SetFormatRange(int nStart, int nEnd, BOOL bBold, COLORREF clr);


// Dialog Data
	//{{AFX_DATA(CGShiEdit)
	enum { IDD = IDD_GONGSHI };
	CEdit	m_edit2;
	CEdit	m_edit1;
	CRichEditCtrl	m_RichEdit;
	BOOL	m_passw;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGShiEdit)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	int IsConstant(LPCTSTR lpszSymbol);
	void ChangeCase(int nStart, int nEnd, LPCTSTR lpszStr);
	BOOL IsStringQuote(TCHAR ch);
	int IsKeyword(LPCTSTR lpszSymbol);//是关键词
	struct SymbolColor
	{
		COLORREF clrColor;
		BOOL bBold;
	};
	BOOL m_bInForcedChange;
	BOOL m_bCaseSensitive;
	BOOL m_bChangeCase;

	TCHAR m_chComment;
	TCHAR m_chComment2;

	CString m_strComment;
	CString m_strStringQuotes;
	CString m_strKeywords;
	CString m_strKeywordsLower;
	CString m_strConstants;
	CString m_strConstantsLower;

	SymbolColor m_icComment;
	SymbolColor m_icNumber;
	SymbolColor m_icString;
	SymbolColor m_icKeyword;
	SymbolColor m_icConstant;

	CHARRANGE m_crOldSel;


	void FormatTextRange(int nStart, int nEnd);
    void FormatTextLines(int nStart, int nEnd);

	// Generated message map functions
	//{{AFX_MSG(CGShiEdit)
	virtual BOOL OnInitDialog();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnChangeRichedit();
	afx_msg void OnButton7();
	afx_msg void OnCheck1();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GSHIEDIT_H__DA25FEE8_09DC_40F1_8A71_5F47498F80F4__INCLUDED_)

⌨️ 快捷键说明

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