Added Always On Top option to GUI Options in win32 port
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user