1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 09:20:16 +01:00
Files
audacity/src/widgets/AudacityMessageBox.h

30 lines
932 B
C

/**********************************************************************
Audacity: A Digital Audio Editor
AudacityMessageBox.h
Paul Licameli split this out of ErrorDialog.h
**********************************************************************/
#ifndef __AUDACITY_MESSAGE_BOX__
#define __AUDACITY_MESSAGE_BOX__
#include <wx/msgdlg.h>
#include "../Internat.h"
extern TranslatableString AudacityMessageBoxCaptionStr();
// Do not use wxMessageBox!! Its default window title does not translate!
inline int AudacityMessageBox(const wxString& message,
const wxString& caption = AudacityMessageBoxCaptionStr().Translation(),
long style = wxOK | wxCENTRE,
wxWindow *parent = NULL,
int x = wxDefaultCoord, int y = wxDefaultCoord)
{
return ::wxMessageBox(message, caption, style, parent, x, y);
}
#endif