]> git.saurik.com Git - wxWidgets.git/commitdiff
Added AppTraits for OS/2.
authorStefan Neis <Stefan.Neis@t-online.de>
Mon, 22 Sep 2003 00:02:44 +0000 (00:02 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Mon, 22 Sep 2003 00:02:44 +0000 (00:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/apptrait.h
include/wx/os2/apptbase.h [new file with mode: 0644]

index 1f3e30f3b7976d7c39715d59bf2ac94dd2d8dad3..45b1aff24f1f629659ea6e2d749380eee2d05178 100644 (file)
@@ -138,6 +138,8 @@ public:
     #include "wx/unix/apptbase.h"
 #elif defined(__WXMAC__)
     #include "wx/mac/apptbase.h"
+#elif defined(__OS2__)
+    #include "wx/os2/apptbase.h"
 #else // no platform-specific methods to add to wxAppTraits
     // wxAppTraits must be a class because it was forward declared as class
     class WXDLLIMPEXP_BASE wxAppTraits : public wxAppTraitsBase
diff --git a/include/wx/os2/apptbase.h b/include/wx/os2/apptbase.h
new file mode 100644 (file)
index 0000000..26cca0d
--- /dev/null
@@ -0,0 +1,32 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name:        wx/os2/apptbase.h
+// Purpose:     declaration of wxAppTraits for MSW
+// Author:      Stefan Neis
+// Modified by:
+// Created:     22.09.2003
+// RCS-ID:      $Id$
+// Copyright:   (c) 2003 Stefan Neis <Stefan.Neis@t-online.de>
+// Licence:     wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_OS2_APPTBASE_H_
+#define _WX_OS2_APPTBASE_H_
+
+// ----------------------------------------------------------------------------
+// wxAppTraits: the OS2 version adds extra hooks needed by OS2-only code
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_BASE wxAppTraits : public wxAppTraitsBase
+{
+public:
+    // wxThread helpers
+    // ----------------
+
+    // Initialize PM facilities to enable GUI access
+    virtual void InitializeGui(unsigned long &ulHab);
+
+    // Clean up message queue.
+    virtual void TerminateGui(unsigned long ulHab);
+};
+
+#endif // _WX_OS2_APPTBASE_H_