MDI application

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Post Reply
crack1811
Posts: 3
Joined: Wed Oct 24, 2007 6:35 am

MDI application

Post by crack1811 »

I'm using the SpaceMouse in a MDI application.
Now I get the events only in the first window.
I how can I get the events also in the other windows of my application.

Thanks for helping me in advance.
jwick
Moderator
Moderator
Posts: 3341
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Post by jwick »

Hi crack1811,

Which API are you using?

If you are using the C/C++ SDK (not 3DxInput), you can register each MDI window (CView?) with the driver. That involves calling SiOpen with each MDI window handle. Or, you can modify your messagemap to route the events where ever you want inside your app. The events will be sent to whichever window is passed to SiOpen.

If you are using 3DxInput (TDxInput.dll), you may have to be concerned with which message pump is running.

Jim
3Dx Software Development
crack1811
Posts: 3
Joined: Wed Oct 24, 2007 6:35 am

Post by crack1811 »

Hi Jim,

I'm using the TDxInput.dll. I tried to create a device for each MDI Window
and connect the events if the focued changed.
But I get the events only on the first window.
Now made one static device wrapper with my own event handling.
In this case it's working fine.

Thanks for your Help.
Ralph
Post Reply