GShiEdit.h
资源名称:MyStock.rar [点击查看]
上传用户:wenjimin
上传日期:2014-08-12
资源大小:111k
文件大小:2k
源码类别:
金融证券系统
开发平台:
Visual C++
- #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_)