RE: Finding HWND of the current thread

"Donavon Keithley" <[email protected]>
Newsgroups gmane.games.devel.windows
Message-ID <[email protected]>
> God knows what the HWND is really used for in DirectSound and 
> what can happen if you do something like create a hidden window 
> and bind DS to that instead of to your real application window.

I would imagine that it's subclassing the window and sniffing for
deactivation while in exclusive mode, as D3D does with the "focus" window.
That would imply that it needs to be top-level and that the choice of window
is quite significant.  For instance in a D3D app, it should be the same
window as the D3D focus window.

As an experiment, I'd create a test app with two top-level windows.  Give
one to D3D and the other to DSound, go exclusive on both, and see what
happens when you Alt-Tab away.  Will DSound realize that it should
relinquish?  I don't have a lot of experience with DSound, but my chips are
on "no".

Donavon Keithley



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.