Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在打开时将焦点设置为确定按钮TPrintDialog?
TPrintDialog
在这种情况TPrintDialog::OnShow下,您可以手动将焦点设置为 OK 按钮,如下所示:
TPrintDialog::OnShow
void __fastcall TMyForm::PrintDialogShow(TObject *Sender) { HWND btnOK = GetDlgItem(PrintDialog->Handle, IDOK); ::SetFocus(btnOK); }