IrrlichtDevice::isWindowsActive()Code:
bool CIrrDeviceWin32::isWindowActive() const
{
_IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX;
return (GetActiveWindow() == HWnd);
}
Zitat:
Link:
http://msdn.microsoft.com/en-us/library ... 85%29.aspxThe return value is the handle to the active window attached to the calling thread's message queue. Otherwise, the return value is NULL. A system has only one active window, which GetForegroundWindow() returns. GetActiveWindow() seems to return the same window as GetForegroundWindow() if the foreground window belongs to the current thread. Otherwise, it always returns null, rather than the topmost window of the calling thread.
IrrlichtDeivice::isWindowFocused() Code:
//! returns if window has focus
bool CIrrDeviceWin32::isWindowFocused() const
{
bool ret = (GetFocus() == HWnd);
_IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX;
return ret;
}
Zitat:
Link:
http://msdn.microsoft.com/en-us/library ... 85%29.aspxThe return value is the handle to the window with the keyboard focus. If the calling thread's message queue does not have an associated window with the keyboard focus, the return value is NULL. GetFocus returns the window with the keyboard focus for the current thread's message queue. If GetFocus returns NULL, another thread's queue may be attached to a window that has the keyboard focus.
Hab noch nie drüber nachgedacht, meine Deutung:
isWindowActive -> true falls selektiert (aktiv) sonst false
isWindowFocused -> true falls der Keyboardfocus auch wirklich auf dem Window liegt sonst false
Vllt verstehst du ja mehr in der Doku (Link in den quotes) als in meine Worten

_________________

Irrlicht - From Noob To Pro A Guideline
--
Sonstige Projekte, Blog :
http://www.rpdev.net