Let Wine handle the window interface

This commit is contained in:
Javier Serrano Polo
2017-04-10 20:31:11 +02:00
committed by Lukas W
parent d04fd9f542
commit 7a9396d6ea
9 changed files with 90 additions and 184 deletions

View File

@@ -428,6 +428,7 @@ enum RemoteMessageIDs
IdShowUI,
IdHideUI,
IdToggleUI,
IdIsUIVisible,
IdSaveSettingsToString,
IdSaveSettingsToFile,
IdLoadSettingsFromString,
@@ -816,6 +817,15 @@ public:
unlock();
}
int isUIVisible()
{
lock();
sendMessage( IdIsUIVisible );
unlock();
message m = waitForMessage( IdIsUIVisible );
return m.id != IdIsUIVisible ? -1 : m.getInt() ? 1 : 0;
}
inline bool failed() const
{
return m_failed;