Working with two monitors

Working with two monitors

Post by Patricio Mu? » Sat, 22 Mar 2003 03:14:49



Hi all,

i'm working with an MFC Dialog Based Application (with Windows XP) in
which I use Coin3D in order  to display an scene. I want to work with
different views of this scene and i want them to appear in a different
monitor than the principal.

I use one video card (NVIDIA GeForce2 MX/MX 400) which supports two
monitors. The second one extends the desktop. When i move my window to
the second monitor, the scene does not appear. The rest of the window
appears complete (controls...).

I do the following:

int xScreen = GetSystemMetrics(SM_CXSCREEN);
int yScreen = GetSystemMetrics(SM_CYSCREEN);

switch (vista_aux)
{
case 1:
        SetWindowText("Vista Delantera");
        MoveWindow(1024, 0, xScreen/2, yScreen/2, TRUE);
        persCam->position.setValue(0.0, 55, 5.0);
        persCam->pointAt(SbVec3f(0.0,40.0,-50.0));          
        break;
case 2:        
        SetWindowText("Vista Trasera");
        MoveWindow(xScreen/2+1024, 0, xScreen/2, yScreen/2, TRUE);
        persCam->position.setValue(0.0, 55, -10.0);
        persCam->pointAt(SbVec3f(0.0,40.0,50.0));break;
case 3:
        SetWindowText("Vista Izquierda");            
        MoveWindow(1024, yScreen/2, xScreen/2, yScreen/2, TRUE);
        persCam->position.setValue(0.0, 35, 0.0);
        persCam->pointAt(SbVec3f(-10.0,35.0,-10.0));
        break;
case 4:        
        SetWindowText("Vista Derecha");
        MoveWindow(xScreen/2+1024, yScreen/2, xScreen/2, yScreen/2, TRUE);
        persCam->position.setValue(0.0, 35, 0.0);
        persCam->pointAt(SbVec3f(10.0,35.0,-10.0));
        break;

Quote:}

Can anybody help me?

Thanks in advance

 
 
 

1. Two monitors

I have just got a 21 inch monitor for working on my PC. My other
monitor is still fine and I want to hook that up too. I've seen it
done before, the work on one monitor and tools on the other but I
don't know how its done. Anyone know how?


2. Looking for a ras2gif converter!

3. Two Monitors on one graphic adapter

4. Bug in Mark's RayTracer

5. Looking For: Apple Graphic Card To Drive Two Monitors

6. NT FAQ?

7. dual video card output to two VGA monitors?

8. MacOS X Server: Two monitors?

9. two monitors

10. More about two monitors

11. Connecting two monitors to a PowerMac 8600 Help?

12. Help on MIRROR Two page monitor