1
我以前写的代码鼎声音输入
if(Edit1->Text != "" && Key == VK_RETURN){
Edit1->Text = Edit1->Text.Trim();
Edit2->SetFocus();
}
,它工作得很好,直到我用C++ Builder的XE6。每次按下Enter按钮时都会发出铃声。 有帮助吗?
我以前写的代码鼎声音输入
if(Edit1->Text != "" && Key == VK_RETURN){
Edit1->Text = Edit1->Text.Trim();
Edit2->SetFocus();
}
,它工作得很好,直到我用C++ Builder的XE6。每次按下Enter按钮时都会发出铃声。 有帮助吗?
嘟嘟声是IDE上的默认行为。尝试:
if(Edit1->Text != "" && Key == VK_RETURN){
Key=0;
Edit1->Text = Edit1->Text.Trim();
Edit2->SetFocus();
}
替代的解决方案: How to turn off beeping when pressing ENTER on a single-line EDIT control under Windows CE?
你可能想检查http://forums.codeguru.com/showthread.php?433911-TextBox-Enter-click-DING – 2015-03-30 18:32:39