Win32: Use the nicer looking blender-drawn confirmation message box when

quitting with unsaved changes, instead of an ugly messagebox
This commit is contained in:
Antony Ryakiotakis
2018-11-30 21:11:59 +01:00
parent 0b50ce1db4
commit 60d6eb0b5d
2 changed files with 2 additions and 9 deletions

View File

@@ -1751,9 +1751,3 @@ int GHOST_SystemWin32::toggleConsole(int action)
return m_consoleStatus;
}
int GHOST_SystemWin32::confirmQuit(GHOST_IWindow *window) const
{
return (MessageBox(window ? ((GHOST_WindowWin32 *)window)->getHWND() : 0, "Some changes have not been saved.\nDo you really want to quit?",
"Exit Blender", MB_OKCANCEL | MB_ICONWARNING | MB_TOPMOST) == IDOK);
}

View File

@@ -224,10 +224,9 @@ public:
static GHOST_TSuccess pushDragDropEvent(GHOST_TEventType eventType, GHOST_TDragnDropTypes draggedObjectType, GHOST_WindowWin32 *window, int mouseX, int mouseY, void *data);
/**
* Confirms quitting he program when there is just one window left open
* in the application
* Informs if the system provides native dialogs (eg. confirm quit)
*/
int confirmQuit(GHOST_IWindow *window) const;
virtual bool supportsNativeDialogs(void) { return false; }
protected:
/**