WxWidgets wxSingleChoiceDialog
跳到导航
跳到搜索
This dialog shows a list of choices, plus OK and (optionally) Cancel. The user can select one of them. The selection can be obtained from the dialog as an index, a string or client data.
if (dialog.ShowModal() == wxID_OK) { ... }
ShowModal()
Shows the dialog, returning either wxID_OK or wxID_CANCEL.
GetStringSelection()
Returns the selected string.