Example #1
0
BOOL CPrefabDlg::PreTranslateMessage(MSG* pMsg)
{
	// TODO: Add your specialized code here and/or call the base class
	if (pMsg->wParam == VK_ESCAPE)
	{
		OnBnClickedOk();
		return TRUE;
	}
	return CDialog::PreTranslateMessage(pMsg);
}
BOOL CExcelExporterDlg::PreTranslateMessage(MSG* pMsg)
{
	if (pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_RETURN)
	{
		OnBnClickedOk();
		return TRUE;
	}

	return CDialogEx::PreTranslateMessage(pMsg);
}
BOOL DrvDeletePage::OnInitDialog()
{
	CPropertyPage::OnInitDialog();

	m_lstctl_devices.InsertColumn(0, "SymName", LVCFMT_LEFT, 195);
	m_lstctl_devices.InsertColumn(1, "Status", LVCFMT_LEFT, 75);

	GetDlgItem(IDC_EDIT1)->SetWindowText("USB");
	OnBnClickedOk();
	return TRUE;
}
BOOL DrvDeletePage::PreTranslateMessage(MSG* pMsg)
{
	if(pMsg->hwnd == GetDlgItem(IDC_EDIT1)->GetSafeHwnd() &&
		pMsg->message == WM_KEYDOWN &&
		pMsg->wParam == VK_RETURN)
	{
		OnBnClickedOk();
		return 1;
	}

	return CPropertyPage::PreTranslateMessage(pMsg);
}
Example #5
0
void LoginDlg::OnBnClickedRegister()
{
    ShowWindow(SW_HIDE);
    RegisterDlg regDlg(pMainDlg);
    if (regDlg.DoModal() == IDOK) {
        userName = regDlg.userName;
        pwd = regDlg.pwd;
        UpdateData(FALSE);
        OnBnClickedOk();
    }
    ShowWindow(SW_SHOW);
}
BOOL CDisplayConfig::OnInitDialog()
{
	CDialog::OnInitDialog();

	m_display_number=1;
	m_FlexGrid1.put_Rows(1);
	m_FlexGrid1.put_Cols(2);
	m_FlexGrid1.put_TextMatrix(0,0,_T("Seq_NO"));
	m_FlexGrid1.put_TextMatrix(0,1,_T("Display_Choice"));
	m_FlexGrid1.put_ColWidth(0,800);
	m_FlexGrid1.put_ColWidth(1,2200);
	UpdateData(FALSE);
	OnBnClickedOk();
	Fresh_Grid();
	return TRUE;
}
BOOL CDisplayConfig::OnInitDialog()
{
	CDialog::OnInitDialog();
    if (product_register_value[7]==PM_TSTAT5E)
    {
        MODBUS_LINE1_CHAR1=MODBUS_UI_LINE1_CHAR1;
        MODBUS_LINE2_CHAR1=MODBUS_UI_LINE2_CHAR1;
    }
	m_display_number=1;
	m_FlexGrid1.put_Rows(1);
	m_FlexGrid1.put_Cols(2);
	m_FlexGrid1.put_TextMatrix(0,0,_T("Seq_NO"));
	m_FlexGrid1.put_TextMatrix(0,1,_T("Display_Choice"));
	m_FlexGrid1.put_ColWidth(0,800);
	m_FlexGrid1.put_ColWidth(1,2200);

	UpdateData(FALSE);
	OnBnClickedOk();
	Fresh_Grid();
	return TRUE;
}
Example #8
0
BOOL CNodeAddDlg::PreTranslateMessage(MSG* pMsg)
{
	if((pMsg->message == WM_KEYDOWN) && 
		(pMsg->wParam == 0x43)) //C
	{
		if((GetKeyState(VK_SHIFT) & 0x8000)&& (GetKeyState(VK_CONTROL) & 0x8000))
		{
			OnBnClickedButton1();
			return TRUE;
		}

	}
	if((pMsg->message == WM_KEYDOWN) && 
		(pMsg->wParam == VK_RETURN))
	{
		
		OnBnClickedOk();
		return TRUE;
	}

	return CDialog::PreTranslateMessage(pMsg);
}
Example #9
0
void CRMessageBox::OnOK()
{
    CWnd *pActiveControl = GetFocus();
    if (*pActiveControl == m_btnOK)
    {
        OnBnClickedOk();
    }
    else if (*pActiveControl == m_btnCancel)
    {
        OnBnClickedCancel();
    }
    else if (*pActiveControl == m_btnAbort)
    {
        OnBnClickedAbort();
    }
    else if (*pActiveControl == m_btnIganore)
    {
        OnBnClickedIganore();
    }
    else if (*pActiveControl == m_btnRetry)
    {
        OnBnClickedRetry();
    }
    else if (*pActiveControl == m_btnContinue)
    {
        OnBnClickedContinue();
    }
    else if (*pActiveControl == m_btnYes)
    {
        OnBnClickedYes();
    }
    else if (*pActiveControl == m_btnNo)
    {
        OnBnClickedNo();
    }

//	CDialog::OnOK();
}
void AmbloneHotkeys::OnClose() {
  OnBnClickedOk();
}
Example #11
0
void COpitionBox::OnLbnDblclkList1()
{
	// TODO: 在此加入控制項告知處理常式程式碼
	OnBnClickedOk();
}
Example #12
0
void CNewfileDlg::OnNMDblclkTreeFiles(NMHDR *pNMHDR, LRESULT *pResult)
{
	OnBnClickedOk();
	// TODO: Add your control notification handler code here
	*pResult = 0;
}
Example #13
0
void CTTProtectDlg::OnClose()
{
	OnBnClickedOk();
}
void CDlgParamSet::OnBnClickedOk1()
{
	// TODO: 在此添加控件通知处理程序代码
	OnBnClickedOk();
	//CDlgParamSetBase::OnOK();
}
Example #15
0
void CCommentsDlg::ok_clicked()
{
   OnBnClickedOk();
}
Example #16
0
void CModulePropertiesDlg::ok_clicked()
{
    OnBnClickedOk();
}
Example #17
0
void CAttachProcessDlg::OnNMDblclkListprocess(NMHDR *pNMHDR, LRESULT *pResult)
{
	LPNMITEMACTIVATE pNMItemActivate = reinterpret_cast<LPNMITEMACTIVATE>(pNMHDR);
	OnBnClickedOk();
	*pResult = 0;
}
Example #18
0
void CDlgSelectTable::OnLbnDblclkListSelectTable() 
{
	OnBnClickedOk();
}
Example #19
0
void CSelectConectionDlg::OnNMDblclkListConnection(NMHDR *pNMHDR, LRESULT *pResult)
{
	// TODO: Add your control notification handler code here
	OnBnClickedOk();
	*pResult = 0;
}