📄 feedformview.h
字号:
#if !defined(AFX_FEEDFORMVIEW_H__36098A92_8E60_417E_A8DF_D812F3AD4C99__INCLUDED_)
#define AFX_FEEDFORMVIEW_H__36098A92_8E60_417E_A8DF_D812F3AD4C99__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FeedFormView.h : header file
//
#include "Led\Led.h"
#include "digistatic.h"
/////////////////////////////////////////////////////////////////////////////
// CFeedFormView form view
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
#define WM_SEVER_CLIENT_OPC_MSG WM_APP+0x500
struct HMIDefine
{
struct HMIToL2BitReset
{
int Weigth_confirm_tri_MES; //trigger var
float W_slb_weight;
int W_undo_tri_MES; //trigger var
char char_temp1[32];
int BkFur_InIMS; //trigger var
char char_temp2[32];
}m_HMIToL2BitReset;
struct HMIToL2VarHold
{
int W_confirm_state; //trigger var
char char_temp0[32];
}m_HMIToL2VarHold;
struct L2ToHMIBitReset
{
int MES_to_HMI_trigger; //trigger var
int W_conf_man_tri;
int W_undo_man_tri;
int W_state_tri;
int MES_to_HMI_trigger2; //trigger var
int BkFur_InIMS_Ov;
}m_L2ToHMIBitReset;
};
class CFeedFormView : public CFormView
{
protected:
CFeedFormView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CFeedFormView)
// Form Data
public:
//{{AFX_DATA(CFeedFormView)
enum { IDD = IDD_FEED_FORMVIEW };
CComboBox m_feed_searchslab_cond;
CLed m_led_weight_mode;
CListCtrl m_feed;
CListCtrl m_after_weight;
CComboBox m_shift;
CListCtrl m_plan;
CListCtrl m_cast;
int m_sear_l;
int m_sear_w;
int m_sear_h;
CComboBox m_sear_steel;
CString m_edit_cast_id;
CTime m_produce_data;
CString m_feed_plan_id;
CString m_feed_furcode;
CComboBox m_fur_no;
int m_feed_number;
CDigiStatic m_led_weight;
CString m_weight_data;
//}}AFX_DATA
// Attributes
public:
////////////////////与人机界面通讯程序用的
CString strServerName;
bool m_isMemoryMap;
HANDLE hRecvMap;
LPVOID lpData;
HMIDefine* pOPCMemory;
int opcTotalBytes;
// int weight_state;
///////////////////
// Operations
public:
void CFeedFormView::ClientOPCEvent();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFeedFormView)
public:
virtual void OnInitialUpdate();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CFeedFormView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CFeedFormView)
afx_msg void OnDestroy();
afx_msg void OnSearchCast();
afx_msg void OnSearchPlan();
afx_msg void OnFeed();
afx_msg void OnSearchFeed();
afx_msg void OnCancelFeed();
afx_msg void OnWeightModeChange();
afx_msg void OnWeightHand();
afx_msg void OnWeightHandCancel();
afx_msg LRESULT ProcessClientOPCEvent(WPARAM wParam, LPARAM lParam);
afx_msg void OnClickListCast(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnClickListPlan(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FEEDFORMVIEW_H__36098A92_8E60_417E_A8DF_D812F3AD4C99__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -