-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.h
66 lines (63 loc) · 1.74 KB
/
Main.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#pragma once
#include "afxcmn.h"
#include "afxwin.h"
#define WM_WORKLIST WM_USER + 1
#define WM_ERRORXY WM_USER + 2
#define WM_SINGLE WM_USER + 3
struct WorkPoint {
HWND hwnd;
int WorkCount;
std::vector<CString> *Work;
CString StandPos1, StandPos2;
CString PickUp , GlueTime;
};
struct XYError {
double X;
double Y;
double Angle;
};
static CWinThread* g_pThreadRun;
static BOOL g_ThreadClose = FALSE;
//CMain對話方塊
class CMain : public CPropertyPage
{
DECLARE_DYNAMIC(CMain)
public:
CMain();
virtual ~CMain();
//對話框資料
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_MAIN};
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
//屬性
public:
CRect m_InitRect;
CListCtrl m_ListCtrlWork;
std::vector<CString> m_MainWorkData;
int m_MainWorkCount;
CString m_MainPosData1,m_MainPosData2, m_MainPickUp , m_MainGlueTime;
CToolTipCtrl m_tooltip;
CToolTipCtrl m_fasttooltip;
BOOL m_Znone, m_Single;
//方法
public:
void ChangeSize(CWnd* pWnd, int cx, int cy);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnBnClickedBtnmaingoorigin();
afx_msg void OnBnClickedBtnmaintimeout();
afx_msg void OnBnClickedBtnmainstop();
afx_msg void OnBnClickedBtnmainstart();
afx_msg void OnPaint();
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg LRESULT OnListRefresh(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnXYRefresh(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnSetText(WPARAM wParam, LPARAM lParam);
static LONG CStringToXYZ(CString Data, int Choose);
static UINT Run(LPVOID pParam);
static DWORD WINAPI GummingTimeOutThread(LPVOID);
virtual BOOL PreTranslateMessage(MSG* pMsg);
};