summaryrefslogtreecommitdiff
path: root/win/System.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'win/System.cpp')
-rw-r--r--win/System.cpp27
1 files changed, 18 insertions, 9 deletions
diff --git a/win/System.cpp b/win/System.cpp
index d3d6e23..3dbd7fc 100644
--- a/win/System.cpp
+++ b/win/System.cpp
@@ -309,15 +309,25 @@ void SystemDoWaitCursor(int nCode)
}
void Sys_BeginWait ()
+
{
+
SystemDoWaitCursor (1);
+
}
+
+
void Sys_EndWait ()
+
{
+
SystemDoWaitCursor (-1);
+
}
+
+
/////////////////////////////////////////////////////////////////////////////
// Profile Access
@@ -1030,10 +1040,15 @@ int SystemDoMessageBox(char* prompt, int nMode)
}
int Sys_MessageBox (const char* text, const char* caption, int type)
+
{
+
return AfxMessageBox(text, type);
+
}
+
+
extern BOOL AFXAPI AfxFullPath(LPTSTR lpszPathOut, LPCTSTR lpszFileIn);
bool SystemDoDialog(int nMode, void* param)
@@ -1479,14 +1494,6 @@ void SystemReleaseMouse()
ReleaseCapture();
}
-// if (type == 255) -> don't change current type
-void SystemUpdateFocus(void* object, unsigned char type)
-{
- CWnd* pFrame = AfxGetMainWnd();
- if (pFrame != NULL)
- pFrame->PostMessage(WM_LC_UPDATE_INFO, (WPARAM)object, type);
-}
-
void SystemExportClipboard(File* clip)
{
if (clip == NULL)
@@ -1539,10 +1546,12 @@ bool Sys_KeyDown (int key)
return GetKeyState (KEY_CONTROL) < 0;
}
+
void SystemPumpMessages()
{
MSG msg;
- while(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
+
+ while(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
{
TranslateMessage(&msg);
DispatchMessage(&msg);