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); }
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; }
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); }
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(); }
void COpitionBox::OnLbnDblclkList1() { // TODO: 在此加入控制項告知處理常式程式碼 OnBnClickedOk(); }
void CNewfileDlg::OnNMDblclkTreeFiles(NMHDR *pNMHDR, LRESULT *pResult) { OnBnClickedOk(); // TODO: Add your control notification handler code here *pResult = 0; }
void CTTProtectDlg::OnClose() { OnBnClickedOk(); }
void CDlgParamSet::OnBnClickedOk1() { // TODO: 在此添加控件通知处理程序代码 OnBnClickedOk(); //CDlgParamSetBase::OnOK(); }
void CCommentsDlg::ok_clicked() { OnBnClickedOk(); }
void CModulePropertiesDlg::ok_clicked() { OnBnClickedOk(); }
void CAttachProcessDlg::OnNMDblclkListprocess(NMHDR *pNMHDR, LRESULT *pResult) { LPNMITEMACTIVATE pNMItemActivate = reinterpret_cast<LPNMITEMACTIVATE>(pNMHDR); OnBnClickedOk(); *pResult = 0; }
void CDlgSelectTable::OnLbnDblclkListSelectTable() { OnBnClickedOk(); }
void CSelectConectionDlg::OnNMDblclkListConnection(NMHDR *pNMHDR, LRESULT *pResult) { // TODO: Add your control notification handler code here OnBnClickedOk(); *pResult = 0; }