#endif // wxUSE_GUI
#endif // WX_PRECOMP
+#ifndef __WIN16__
#include "wx/process.h"
#include "wx/txtstrm.h"
+#endif
#include <ctype.h>
#include <stdio.h>
HWND hwndFG = ::GetForegroundWindow();
m_winTop = hwndFG ? wxFindWinFromHandle((WXHWND)hwndFG) : (wxWindow *)NULL;
#else
- HWND hwndFG = ::GetTopWindow();
+ HWND hwndFG = ::GetTopWindow(0);
m_winTop = hwndFG ? wxFindWinFromHandle((WXHWND)hwndFG) : (wxWindow *)NULL;
#endif
#endif // MSW
{
// 16-bit SetForegroundWindow() replacement
RECT reWin;
- GetWindowRect(m_winTop, &reWin);
- SetWindowPos (m_winTop, HWND_TOP,
+ GetWindowRect((HWND) m_winTop, &reWin);
+ SetWindowPos ((HWND) m_winTop, HWND_TOP,
reWin.left, reWin.top,
reWin.right - reWin.left, reWin.bottom,
SWP_SHOWWINDOW);
long wxExecute(const wxString& command, wxArrayString& output)
{
+#ifdef __WIN16__
+ wxFAIL_MSG("Sorry, this version of wxExecute not implemented on WIN16.");
+ return 0;
+#else
// create a wxProcess which will capture the output
wxProcess *process = new wxProcess;
process->Redirect();
}
return rc;
+#endif
}