JHCTech FEBC-3158 User Manual page 59

Table of Contents

Advertisement

m_ButtonLED4.SetLED(pWndLedBtn4,ID_LED_GREEN,ID_SHAPE_ROUND,500);
m_ButtonLED4.SwitchOn();
m_ButtonLED4.LedOff();
InitializeWinIo();
CWnd *pWndLedBtn5 = (CWnd *)GetDlgItem(IDC_BTN_LED5);
m_ButtonLED5.SetLED(pWndLedBtn5,ID_LED_GREEN,ID_SHAPE_ROUND,500);
m_ButtonLED5.SwitchOn();
m_ButtonLED5.LedOff();
CWnd *pWndLedBtn6 = (CWnd *)GetDlgItem(IDC_BTN_LED6);
m_ButtonLED6.SetLED(pWndLedBtn6,ID_LED_GREEN,ID_SHAPE_ROUND,500);
m_ButtonLED6.SwitchOn();
m_ButtonLED6.LedOff();
InitializeWinIo();
CWnd *pWndLedBtn7 = (CWnd *)GetDlgItem(IDC_BTN_LED7);
m_ButtonLED7.SetLED(pWndLedBtn7,ID_LED_GREEN,ID_SHAPE_ROUND,500);
m_ButtonLED7.SwitchOn();
m_ButtonLED7.LedOff();
CWnd *pWndLedBtn8 = (CWnd *)GetDlgItem(IDC_BTN_LED8);
m_ButtonLED8.SetLED(pWndLedBtn8,ID_LED_GREEN,ID_SHAPE_ROUND,500);
m_ButtonLED8.SwitchOn();
m_ButtonLED8.LedOff();
InitializeWinIo();
SetTimer(1,200, 0);
return TRUE; // return TRUE unless you set the focus to a control
}
void CL706_GPIO_TESTDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
if ((nID & 0xFFF0) == IDM_ABOUTBOX)
{
CAboutDlg dlgAbout;
dlgAbout.DoModal();
}
else
{
CDialog::OnSysCommand(nID, lParam);
}
}
// If you add a minimize button to your dialog, you will need the code below
// to draw the icon. For MFC applications using the document/view model,
// this is automatically done for you by the framework.
User's Manual
52

Advertisement

Table of Contents
loading

Table of Contents