📄 cursoreditordlg.h
字号:
// CursorEditorDlg.h : header file
//
#if !defined(AFX_CURSOREDITORDLG_H__3D33E528_5CDD_4FCF_A0AF_F226E918F1AB__INCLUDED_)
#define AFX_CURSOREDITORDLG_H__3D33E528_5CDD_4FCF_A0AF_F226E918F1AB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "StaticEx.h"
#include "afxtempl.h"
/////////////////////////////////////////////////////////////////////////////
// CCursorEditorDlg dialog
class CCursorEditorDlg : public CDialog
{
// Construction
public:
void FromSelToMax(int starpos);
void ClearStaticDrawRect(CPoint Clpoint);
void RushOldLine();
~CCursorEditorDlg();
void EditLineCurDrawRect(CPoint mPoint); //划直线时将动态点加入到m_pSelCur中
void PreviewDrawLineCur(); //划直线时的刷新
void PutBufferWriteToFile(); //把m_pMaxCurBuffer写入到文件中
void FromDlgWriteToBuffer(); //把m_pSelCur存储到m_pMaxCurBuffer中
void PreviewDrawCur(); //划点时刷新
void EditStaticDrawRect(CPoint pPoint); //划点时将动态点加入到m_pSelCur中
BOOL SaveCurToClass(); //保存操作
CCursorEditorDlg(CWnd* pParent = NULL); // standard constructor
friend VOID CALLBACK func(int x, int y, LPARAM lpdata);
int m_ncurcount; //当前文件中光标的实际个数
CPoint m_FirPoint;
CPoint m_LastPoint;
CursorBuffer *m_pSelCur; //存储编辑画板框中的光标
CursorBuffer *m_pLineCur; //划线时用来存储所确定的直线
CArray<CursorBuffer,CursorBuffer> m_pMaxCurBuffer; //存储当前所打开文件的光标
int m_nComboSel; //选中文件中第几个光标
int m_nMaxCol; //当前文件中的光标最大尺寸
int m_nMaxRow;
int m_nMaxSelCurPointCount; //当前文件中每个光标象素的最大个数
int startCurBuf; //选择光标时m_pMaxCurBuffer中的起始位置
int staticRow;
int staticCol;
int IsSave;
CString strszfile; //文件路径名
enum PICTURE_EDIT_MODE //设定的方式
{
PICTURE_POINT_MODE,
PICTURE_LINE_MODE,
CLEAR_LINEANDPOINT_MODE,
INVALID_MODE
};
PICTURE_EDIT_MODE CUR_EDIT_MODE;
// Dialog Data
//{{AFX_DATA(CCursorEditorDlg)
enum { IDD = IDD_CURSOREDITOR_DIALOG };
CStatic m_static3;
CStatic m_static1;
CButton m_check;
CStatic m_Picture;
CStaticEx m_pStatic;
CComboBox m_combo1;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCursorEditorDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CCursorEditorDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnLoadCurFile();
afx_msg void OnSelchangeCombo1();
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnSetPointMode();
afx_msg void OnSetLineMode();
afx_msg void OnSaveCurToFile();
afx_msg void OnAddCurToFile();
afx_msg void OnDeleteCursorInFile();
afx_msg void OnCorrectCursorSize();
afx_msg void OnClearButton();
afx_msg void OnClose();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CURSOREDITORDLG_H__3D33E528_5CDD_4FCF_A0AF_F226E918F1AB__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -