wxColourDialog* dialog = new wxColourDialog(NULL); if(dialog->ShowModal() == wxID_OK ) { wxColourData data = dialog->GetColourData(); dialog->Destroy(); }
不要用wxColourDialog::Create,会有莫名其妙的错误。
时间: 2024-12-28 23:56:17
wxColourDialog* dialog = new wxColourDialog(NULL); if(dialog->ShowModal() == wxID_OK ) { wxColourData data = dialog->GetColourData(); dialog->Destroy(); }
不要用wxColourDialog::Create,会有莫名其妙的错误。