Skip to content

Commit b647776

Browse files
committed
Play system sound when showing Yes/No/Cancel dialog box
1 parent f09cb12 commit b647776

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Editor/EditorUtil.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "EditorUtil.h"
22

33
#include <Windows.h>
4+
#include <mmsystem.h>
45
#include <commdlg.h>
56
#include <direct.h>
67

@@ -9,6 +10,7 @@ namespace RTEGUI {
910
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1011

1112
int EditorUtil::DisplayDialogBox(const std::string &message, const HWND &windowHandle) {
13+
PlaySound("SystemExclamation", nullptr, SND_ASYNC);
1214
int result = MessageBox(windowHandle, message.c_str(), "Cortex Command GUI Editor", MB_YESNOCANCEL);
1315

1416
if (result == IDNO) { return -1; }

0 commit comments

Comments
 (0)