Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What different? Pin
Ravi Bhavnani7-Jun-03 10:31
professionalRavi Bhavnani7-Jun-03 10:31 
GeneralRe: What different? Pin
Mike Nordell7-Jun-03 15:04
Mike Nordell7-Jun-03 15:04 
GeneralRight To Left Writing Pin
Asad Rasheed6-Jun-03 12:25
Asad Rasheed6-Jun-03 12:25 
GeneralSmart Card Inserts & Removes Pin
Fad B6-Jun-03 10:57
Fad B6-Jun-03 10:57 
GeneralWindow Size and position in registry Pin
electronicman_x6-Jun-03 10:11
electronicman_x6-Jun-03 10:11 
GeneralRe: Window Size and position in registry Pin
Miszou6-Jun-03 11:06
Miszou6-Jun-03 11:06 
GeneralRe: Window Size and position in registry Pin
electronicman_x9-Jun-03 11:11
electronicman_x9-Jun-03 11:11 
GeneralRe: Window Size and position in registry Pin
Neville Franks6-Jun-03 12:12
Neville Franks6-Jun-03 12:12 
Jeff, What version of StingRay are you using. OT-Pro includes SECWorkspaceManagerEx() which saves the size/pos/state of all windows/toolbars etc. I use this in ED (see sig).

Also nore that SPI_GETWORKAREA is only for the primary monitor. If you want to force users only to use that, you are ok, but most users won't like that.

Instead use code like:

#include <multimon.h>

        if ( WinPlatform() & ( WIN_98 | WIN_NT5 )
          && GetSystemMetrics( SM_CMONITORS ) > 1    // if > one monitor.
           )
        {
            // SM_CXVIRTUALSCREEN, SM_CYVIRTUALSCREEN  are the width and height,
            // in pixels, of the virtual screen.
            // SM_XVIRTUALSCREEN, SM_YVIRTUALSCREEN metrics are the coordinates
            // of the top left corner of the virtual screen.
            // The virtual screen is the bounding rectangle of all display monitors.
            // See also: SM_CMONITORS, SM_SAMEDISPLAYFORMAT.
            pRect->top    = GetSystemMetrics( SM_YVIRTUALSCREEN );
            pRect->left   = GetSystemMetrics( SM_XVIRTUALSCREEN );
            pRect->right  = GetSystemMetrics( SM_CXVIRTUALSCREEN ) + pRect->left;
            pRect->bottom = GetSystemMetrics( SM_CYVIRTUALSCREEN ) + pRect->top;
        }


There are articles here on Multimon which provides a good API for dealing with multiple monitors.

Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
GeneralRe: Window Size and position in registry Pin
electronicman_x9-Jun-03 11:14
electronicman_x9-Jun-03 11:14 
GeneralRe: Window Size and position in registry Pin
Neville Franks9-Jun-03 11:36
Neville Franks9-Jun-03 11:36 
Question(Non-programming) Virtual Machine Simulator like VMware? Pin
Dominik Reichl6-Jun-03 9:58
Dominik Reichl6-Jun-03 9:58 
AnswerRe: (Non-programming) Virtual Machine Simulator like VMware? Pin
Daniel Turini6-Jun-03 10:05
Daniel Turini6-Jun-03 10:05 
AnswerRe: (Non-programming) Virtual Machine Simulator like VMware? Pin
Mike Nordell7-Jun-03 6:44
Mike Nordell7-Jun-03 6:44 
GeneralRe: (Non-programming) Virtual Machine Simulator like VMware? Pin
Dominik Reichl7-Jun-03 9:36
Dominik Reichl7-Jun-03 9:36 
GeneralClass Wizard Problems Pin
a2k6-Jun-03 8:32
a2k6-Jun-03 8:32 
GeneralRe: Class Wizard Problems Pin
Cambalindo7-Jun-03 10:22
Cambalindo7-Jun-03 10:22 
GeneralCListView Pin
schoni6-Jun-03 7:58
schoni6-Jun-03 7:58 
GeneralMFC-Buch in Deutsch Pin
schoni6-Jun-03 7:50
schoni6-Jun-03 7:50 
GeneralRe: MFC-Buch in Deutsch Pin
David Crow6-Jun-03 10:40
David Crow6-Jun-03 10:40 
GeneralRe: MFC-Buch in Deutsch Pin
Anonymous7-Jun-03 0:06
Anonymous7-Jun-03 0:06 
GeneralAlign control in Visual C++ Editor Pin
doctorpi6-Jun-03 6:49
doctorpi6-Jun-03 6:49 
GeneralRe: Align control in Visual C++ Editor Pin
Maximilien6-Jun-03 7:04
Maximilien6-Jun-03 7:04 
GeneralRe: Align control in Visual C++ Editor Pin
doctorpi6-Jun-03 7:06
doctorpi6-Jun-03 7:06 
GeneralRe: Align control in Visual C++ Editor Pin
doctorpi6-Jun-03 7:09
doctorpi6-Jun-03 7:09 
GeneralRe: Align control in Visual C++ Editor Pin
Maximilien6-Jun-03 7:28
Maximilien6-Jun-03 7:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.