📄 screenview.h
字号:
// ScreenView.h : interface of the CScreenView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_SCREENVIEW_H__462D5C2A_C01E_4CC0_BF11_FD632A25E1E9__INCLUDED_)
#define AFX_SCREENVIEW_H__462D5C2A_C01E_4CC0_BF11_FD632A25E1E9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "stagemeng.h"
#include "word.h"
#include "serialport.h"
#include "myedit.h"
#include "screendoc.h"
#include "mylistbox.h"
#include "DrawVw.h"
#include "listvw.h"
#include "myEditVw.h"
#define SENDCURPIC 0
#define SENDALLPIC 1
#define SENDPOWERON 2
#define SENDPOWEROFF 3
class CScreenView : public CFormView
{
protected: // create from serialization only
CScreenView();
DECLARE_DYNCREATE(CScreenView)
public:
unsigned char CL2005_Answer;
unsigned char m_iPic;
BOOL CL2005_SendNum;
unsigned char m_SendToCL2005Type;
unsigned char CL2005_SendChar[20];
unsigned char m_AllPicNum;
unsigned char m_CL2005_PicAnswer;
int m_SendToCl2005PicIndex;
//{{AFX_DATA(CScreenView)
enum { IDD = IDD_SCREEN_FORM };
CMyListBox m_PageListBox;
CMyEdit m_ZMList;
// CListBox m_PageListBox;
//}}AFX_DATA
// Attributes
public:
WORD StrToWord(char* str);
void funCRC(WORD* CRCValue,BYTE ch);
CScreenDoc* pDoc;
CDrawVw* pDrawVw;
CListVw* pListVw;
CMyEditVw* pEditVw;
int downloadmode;
bool bAck;
CWinThread* getInfoThread;//显示线程
CWinThread* sendThread;//显示线程
int pagenum;
CSerialPort* pComm;
CScreenDoc* GetDocument();
// CObList m_pageList;
CObList m_wordList;
int orgx,orgy,step;
BOOL bReDraw;
BOOL bBold;
BOOL bItalic;
BOOL bLock;
BOOL bShowRectangle;
CPoint m_OrgPt;
CPoint m_MovPt;
int m_MouseFlag;
// CStagementObj* pCurStagementObj;
BYTE datread[100];
int readindex;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CScreenView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
virtual void OnDraw(CDC* pDC);
virtual void CalcWindowRect(LPRECT lpClientRect, UINT nAdjustType = adjustBorder);
//}}AFX_VIRTUAL
// Implementation
public:
BOOL DownLoad2(int mode);
static UINT GetInfoProc( LPVOID pParam);
static UINT sendProc( LPVOID pParam);
POSITION FindPosFromList(CString strname);
BOOL GetScreenInfo();
BOOL DownLoad(int Mode);
void SaveFile();
BOOL ImportPageList();
BOOL CancelSelect();
BOOL SetObjOrder(BOOL order);
BOOL DeleteWordOrPic();
BOOL ModifyWord(CString str);
BOOL AddPicToPage();
BOOL DeletePage();
BOOL AddWordToPage(CString wordstr,int screenWidth,int screenHeight,int wordWidth,int wordHeight,CString fontStr);
BOOL AddPageList(CString pagename);
void DrawScreen();
BOOL bModiftBtnEnable;
void DrawGraph(CDC* pMemDC,int mode);
void DeleteAllPage();
void SelChange(int index);
void DrawDz(CDC* pMemDC,CWordObj *pZkObject,COLORREF color,int mode);
void CreateDz(CDC* tpDC,CWordObj* pWordObj,CString str,CString fontstr,int width,int height);
void DrawGrid(CDC* tpDC);
virtual ~CScreenView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CScreenView)
afx_msg void OnUpdateImport(CCmdUI* pCmdUI);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnCancelMode();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnCaptureChanged(CWnd *pWnd);
afx_msg void OnEditchangeCombo1();
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnSelchangePagelist();
afx_msg void OnUpdateModifybtn(CCmdUI* pCmdUI);
afx_msg void OnButton1();
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg LRESULT OnCommnucation(WPARAM wParam, LPARAM lParam);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnSupper();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in ScreenView.cpp
inline CScreenDoc* CScreenView::GetDocument()
{ return (CScreenDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SCREENVIEW_H__462D5C2A_C01E_4CC0_BF11_FD632A25E1E9__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -