Added Always On Top option to GUI Options in win32 port

This commit is contained in:
pagefault
2001-05-04 20:36:10 +00:00
parent 73100da89c
commit ed60cc11c6
4 changed files with 43 additions and 4 deletions

View File

@@ -186,6 +186,7 @@ extern BYTE StereoSound;
extern DWORD SoundQuality;
extern BYTE LargeSoundBuf;
extern BYTE HighPriority;
extern BYTE AlwaysOnTop;
extern int CurKeyPos;
extern int CurKeyReadPos;
extern int KeyBuffer[16];
@@ -197,6 +198,12 @@ extern "C" void CheckPriority()
else SetPriorityClass(GetCurrentProcess(), NORMAL_PRIORITY_CLASS);
}
extern "C" void CheckAlwaysOnTop()
{
if (AlwaysOnTop == 1) SetWindowPos(hMainWindow, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
else SetWindowPos(hMainWindow, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
}
BOOL InputRead(void)
{
static PrevZ=0;