THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/12/2008 at 08:01, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
Hi,
I want to add support for controlling via directinput. So far no problem, I've got all the inludes and libs working. But at least one function expects a window handle:
HRESULT SetCooperativeLevel(HWND hwnd, DWORD dwFlags)
>> Window handle to be associated with the device. This parameter must be a valid top-level window handle that belongs to the process. The window associated with the device must not be destroyed while it is still active in a DirectInput device. <<
Is it possible to retrieve such a window handle? Since it must be a top-level window it must be the main c4d window, true?