summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-03-28 15:22:20 +0000
committerManolo Gouy <Manolo>2016-03-28 15:22:20 +0000
commit28d1a2d6848d5abe555fd0ddae8b57cec6f900ca (patch)
treebb17efad1d942a3fee09b0ef9e858677060e2230 /src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
parent244a1a5bc439c0a3427e78f1dac9623b85f161bb (diff)
Rewrite Fl_abort.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11452 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
index b3678c097..8ea6113a0 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
+++ b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
@@ -19,6 +19,8 @@
#include "../../config_lib.h"
#include "Fl_WinAPI_System_Driver.H"
+#include <stdio.h>
+#include <windows.h>
#if !defined(FL_DOXYGEN)
const char* fl_local_alt = "Alt";
@@ -32,6 +34,24 @@ Fl_System_Driver *Fl_System_Driver::driver() {
return d;
}
+void Fl_WinAPI_System_Driver::warning(const char *format, va_list args) {
+ // Show nothing for warnings under WIN32...
+}
+
+void Fl_WinAPI_System_Driver::error(const char *format, va_list args) {
+ char buf[1024];
+ vsnprintf(buf, 1024, format, args);
+ MessageBox(0,buf,"Error",MB_ICONEXCLAMATION|MB_SYSTEMMODAL);
+}
+
+void Fl_WinAPI_System_Driver::fatal(const char *format, va_list args) {
+ char buf[1024];
+ vsnprintf(buf, 1024, format, args);
+ MessageBox(0,buf,"Error",MB_ICONSTOP|MB_SYSTEMMODAL);
+ ::exit(1);
+}
+
+
//
// End of "$Id$".
//