5
// For compilers that support precompilation, includes "wx/wx.h".
12
// for all others, include the necessary headers (this file is usually all you
13
// need because it includes almost all "standard" wxWidgets headers)
19
#include "Common/StringConvert.h"
21
#include "Windows/Window.h"
28
_IsMain = wxThread::IsMain();
29
if (!_IsMain) wxMutexGuiEnter();
31
~LockGUI() { if (!_IsMain) wxMutexGuiLeave(); }
36
HWND GetDlgItem(HWND dialogWindow, int ControlID)
39
if (dialogWindow) return dialogWindow->FindWindow(ControlID);
43
void MySetWindowText(HWND wnd, LPCWSTR s)
51
int id = wnd->GetId();
52
if ( (id != wxID_OK) && (id != wxID_CANCEL) && (id != wxID_HELP) && (id != wxID_YES) && (id != wxID_NO))
59
bool CWindow::GetText(CSysString &s)
64
str = _window->GetLabel();
70
bool CWindow::IsEnabled()
73
return _window->IsEnabled();
77
////////////////////////////////// Windows Compatibility
78
#include <sys/resource.h>
80
void Sleep(unsigned millisec)
82
wxMilliSleep(millisec);
85
t_processID GetCurrentProcess(void) {
89
void SetPriorityClass(t_processID pid , int priority) {
90
setpriority(PRIO_PROCESS,pid,priority);