]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/accel.cpp
wxThread fixes - compilation under Unix temporarily broken, sorry.
[wxWidgets.git] / src / msw / accel.cpp
index 86a28418e465bafdd6098664f388a064632c568d..680ec4e770561e1ec76f42a9a3a046d97c89c4ce 100644 (file)
@@ -23,6 +23,7 @@
 #ifndef WX_PRECOMP
 #include <stdio.h>
 #include "wx/setup.h"
+#include "wx/window.h"
 #endif
 
 #include "wx/msw/private.h"
@@ -61,7 +62,10 @@ wxAcceleratorRefData::~wxAcceleratorRefData()
 {
   if (m_hAccel)
   {
+    // This function not available in WIN16
+#ifndef __WIN16__
     DestroyAcceleratorTable((HACCEL) m_hAccel);
+#endif
   }
   m_hAccel = 0 ;
 }
@@ -99,6 +103,8 @@ extern int wxCharCodeWXToMSW(int id, bool *isVirtual);
 // Create from an array
 wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[])
 {
+    // Not available in WIN16
+#ifndef __WIN16__
     m_refData = new wxAcceleratorRefData;
 
     ACCEL* arr = new ACCEL[n];
@@ -128,6 +134,7 @@ wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]
     delete[] arr;
 
     M_ACCELDATA->m_ok = (M_ACCELDATA->m_hAccel != 0);
+#endif
 }
 
 bool wxAcceleratorTable::Ok(void) const