RE: [GD-Windows] Finding HWND of the current thread
Brought to you by:
vexxed72
From: Brian H. <ho...@bo...> - 2004-07-15 18:21:47
|
> Couldn't you just create a simple hidden window and pass that > handle in? You could, but that's not really the right thing to do, e.g. to handle minimization automatically. DirectSound really wants to have a handle to the application window, not just any handle. > Really though if this is a library wouldn't you want to allow the > user to pass in a handle and handle the case of being a console app > at a higher level... Yes, but expressing that portability is kind of gross. It's what I'm doing right now, in fact, but I don't like it, and if there was a way to isolate the user from this, that would be ideal. Brian |