?? estop.cpp
字號:
// estop.cpp : implementation file
//
#include "stdafx.h"
#include "alfa.h"
#include "estop.h"
#include "MCCL.h"
#include "sys.h"
#include "main.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// Cestop dialog
Cestop::Cestop(CWnd* pParent /*=NULL*/)
: CDialog(Cestop::IDD, pParent)
{
//{{AFX_DATA_INIT(Cestop)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void Cestop::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(Cestop)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(Cestop, CDialog)
//{{AFX_MSG_MAP(Cestop)
ON_WM_TIMER()
ON_WM_SHOWWINDOW()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// Cestop message handlers
void Cestop::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
WORD wInput0;
WORD wInput;
MCC_GetRIOInputValue( &wInput0, RIO_SET1, RIO_PORT0, CARD_INDEX);// get remote I/O set 0's DI0 ~ DI15 statuses
wInput=wInput0;
if(wInput0==(wInput|0x8000))
{
return;
}
else
{
KillTimer(30);
ShowWindow(FALSE);
CMain * main=(CMain*)GetParent();
main->dlghome->ShowWindow(TRUE);
return;
}
CDialog::OnTimer(nIDEvent);
}
void Cestop::OnShowWindow(BOOL bShow, UINT nStatus)
{
CDialog::OnShowWindow(bShow, nStatus);
if(bShow==1)
{
SetTimer(30,40,NULL);
}
else
{
KillTimer(30);
}
// TODO: Add your message handler code here
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -