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

📄 editidlg.h

📁 随着计算机信息技术的飞速发展
💻 H
字号:
// EditiDlg.h : header file
//
//{{AFX_INCLUDES()
#include "msflexgrid.h"
//}}AFX_INCLUDES

#if !defined(AFX_EDITIDLG_H__947984C7_91F0_11D8_B017_00D0F80DA984__INCLUDED_)
#define AFX_EDITIDLG_H__947984C7_91F0_11D8_B017_00D0F80DA984__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include  "MyEdit.h"
#define MY_EDIT_CTRL           1111
#define GRID_DATA_CHANGED		WM_USER+1
/////////////////////////////////////////////////////////////////////////////
// CEditiDlg dialog
#include "MFECToolTip.h"

class CEditiDlg : public CDialog
{
// Construction
public:
	void updateFlexGrid(int m,int n);
	void refreshFlexGrid(int m,int n);
	void ParseLine(CString strIn, double outData[7], CString outStr[7], int iChar);
	CEditiDlg(CWnd* pParent = NULL);	// standard constructor

	CMyEdit       *m_edit;
	void CreateEditBox();

	long m_selectedRow; //当前选中的行
	long m_selectedCol; //当前选中的列
	long m_oldSelectedRow; //前次选中的行
	long m_oldSelectedCol; //前次选中的列

	CString m_oldGridValue; //保存网格中原有的值

	 long iColWidth0;  //当前选中列的列宽, used for HScroll Slider
	 long iRowHeight0; //当前选中行的行高, used for HScroll Slider
	static int m_Ikey;
	static short m_AlignHV;
   
	CString strRowSel;
	CString strColSel;
	bool bMultiSel;

	void SetCellColor(bool);

// Dialog Data
	//{{AFX_DATA(CEditiDlg)
	enum { IDD = IDD_EDITI_DIALOG };
	CMSFlexGrid	m_gridCtrl;
	int		m_editNum;
	BOOL m_editSetFocus;
	CString	m_fNameIn;
	CString	m_fNameOut;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CEditiDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
	CMFECToolTip	m_toolTip;
	UINT m_timerID;

	// Generated message map functions
	//{{AFX_MSG(CEditiDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnKillfocusEdit1();
	afx_msg void OnSetfocusEdit1();
	afx_msg void OnBtnFileDlg();
	afx_msg void OnBtnSaveToFile();
	afx_msg void OnBtn2Matlab();
	afx_msg LONG OnGridDataChanged(UINT wParam, LONG lParam);
	afx_msg void OnEnterCellMsflexgrid1();
	afx_msg void OnDblClickMsflexgrid1();
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnScrollMsflexgrid1();
	afx_msg void OnBtnSetCellAlignment();
	afx_msg void OnBtnColor();
	afx_msg void OnBtnClear();
	afx_msg void OnReleasedcaptureCellSize(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnmnuCOPY();
	afx_msg void OnmnuPASTE();
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnClickMsflexgrid1();
	afx_msg void OnmnuBackColor();
	afx_msg void OnmnuForeColor();
	afx_msg void OnmnuRowInsert();
	afx_msg void OnmnuRowDelete();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_EDITIDLG_H__947984C7_91F0_11D8_B017_00D0F80DA984__INCLUDED_)

⌨️ 快捷键说明

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