如何在 RAD Studio XE 中更改 TMsgDlgButtons "Yes" 和 "No" 按钮的文本?

How to change the Text of TMsgDlgButtons "Yes" and "No" Buttons in RAD Studio XE?

我想更改消息框中 YESNO 按钮的文本。

CModalWndManager::ShowMessageBox(AnsiString::LoadStr(IDS_NOT_SUPPORTED).c_str(), mtWarning, TMsgDlgButtons() << mbYes << mbNo, mbOK == mrYes);

我想要 "Switch Mode",而不是 YES,对于 NO,我想要 "Exit"

是否可以在 RAD Studio XE 中执行此操作?

http://bcbjournal.org/articles/vol4/0003/Making_marvelous_message_dialogs.htm

TForm* Dlg = CreateMessageDialog(
    "Purge Warp Core?", mtConfirmation,
    TMsgDlgButtons() << mbYes << mbNo);
  TButton* yb = dynamic_cast<TButton *>
    (Dlg->FindComponent("Yes"));
  if (yb)
    yb->Caption = "Affirmative";
  TButton* nb = dynamic_cast<TButton *>
    (Dlg->FindComponent("No"));
  if (nb)
    nb->Caption = "Negative";
  int Rslt = Dlg->ShowModal();
  switch (Rslt) {
    case mrYes: ;// do "Yes" stuff
    case mrNo:  ;// do "No" stuff