Click here to Skip to main content
15,920,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Data Structure: Advice required Pin
David Crow16-May-05 2:45
David Crow16-May-05 2:45 
GeneralRe: Data Structure: Advice required Pin
Imtiaz Murtaza16-May-05 3:56
Imtiaz Murtaza16-May-05 3:56 
GeneralRe: Data Structure: Advice required Pin
David Crow16-May-05 4:00
David Crow16-May-05 4:00 
GeneralGetSystemMetrics(SM_CXVIRTUALSCREEN) Pin
IlanTal16-May-05 1:37
IlanTal16-May-05 1:37 
GeneralRe: GetSystemMetrics(SM_CXVIRTUALSCREEN) Pin
James R. Twine16-May-05 3:08
James R. Twine16-May-05 3:08 
GeneralRe: GetSystemMetrics(SM_CXVIRTUALSCREEN) Pin
IlanTal16-May-05 3:14
IlanTal16-May-05 3:14 
GeneralRe: GetSystemMetrics(SM_CXVIRTUALSCREEN) Pin
James R. Twine16-May-05 6:33
James R. Twine16-May-05 6:33 
GeneralRe: GetSystemMetrics(SM_CXVIRTUALSCREEN) Pin
IlanTal16-May-05 19:35
IlanTal16-May-05 19:35 
Jim shalom,
Thanks for your trouble to answer my question. This morning I finally solved the mystery. I've got 2 different machines, one with 2 monitors and vs7 and the second with 1 monitor and vs6. (Change 2 variables at the same time and you've got problems.) The documentation about the SDK managed to confuse me as well.
Yesterday I went and looked with the debugger in assembly mode at the 2 monitor system. I saw it went into user32.dll with the integer value. Clearly user32.dll depends only on the operating system and has no connection to vs6 or vs7 (or any SDK for that matter).
Thus I manually defined SM_C?VIRTUALSCREEN and SM_MONITORS for vs6 only. Now I call SM_C?VIRTUALSCREEN if and only if SM_MONITORS returns > 1. I initially expected SM_C?VIRTUALSCREEN to return the same value as SM_C?SCREEN (the bounding rectangle of 1 screen), but this is a mistake and it returns zero for 1 monitor. Thus I have to complicate my code a bit and use:
if( GetSystemMetrics( SM_CMONITORS) > 1) {
m_screen.x = GetSystemMetrics( SM_CXVIRTUALSCREEN);
m_screen.y = GetSystemMetrics( SM_CYVIRTUALSCREEN);
}
else {
m_screen.x = GetSystemMetrics( SM_CXSCREEN);
m_screen.y = GetSystemMetrics( SM_CYSCREEN);
}

The bottom line is that it works and I don't need the SDK. It is still operating system dependent, but if I want 2 monitors, that is the price.
Thanks again for your help.

Shalom,
Ilan

GeneralRe: GetSystemMetrics(SM_CXVIRTUALSCREEN) Pin
ucc80116-May-05 20:36
ucc80116-May-05 20:36 
GeneralRe: GetSystemMetrics(SM_CXVIRTUALSCREEN) Pin
ucc80116-May-05 20:37
ucc80116-May-05 20:37 
GeneralQT and Intellisense Pin
Sitaram Sukumar15-May-05 19:40
Sitaram Sukumar15-May-05 19:40 
GeneralRe: QT and Intellisense Pin
David Crow16-May-05 2:35
David Crow16-May-05 2:35 
GeneralRe: QT and Intellisense Pin
ucc80116-May-05 20:42
ucc80116-May-05 20:42 
Generalquestion regarding CListCtrl..... Pin
namaskaaram15-May-05 18:59
namaskaaram15-May-05 18:59 
GeneralRe: question regarding CListCtrl..... Pin
Jack Puppy16-May-05 2:45
Jack Puppy16-May-05 2:45 
GeneralRe: question regarding CListCtrl..... Pin
namaskaaram16-May-05 3:38
namaskaaram16-May-05 3:38 
GeneralRe: question regarding CListCtrl..... Pin
David Crow16-May-05 2:48
David Crow16-May-05 2:48 
GeneralForming Grid using Rectangles Pin
jinbabaj15-May-05 18:15
jinbabaj15-May-05 18:15 
GeneralRe: Forming Grid using Rectangles Pin
Ryan Binns15-May-05 18:28
Ryan Binns15-May-05 18:28 
GeneralRe: Forming Grid using Rectangles Pin
Blake Miller16-May-05 8:35
Blake Miller16-May-05 8:35 
GeneralRe: Forming Grid using Rectangles Pin
ucc80116-May-05 20:46
ucc80116-May-05 20:46 
GeneralQuestion: How can I create and show the MSOFFICE files from stream Pin
figer15-May-05 16:48
figer15-May-05 16:48 
GeneralHooking RegisterClassEx and dll question Pin
Kuniva15-May-05 12:45
Kuniva15-May-05 12:45 
GeneralRe: Hooking RegisterClassEx and dll question Pin
Ryan Binns15-May-05 18:43
Ryan Binns15-May-05 18:43 
GeneralRe: Hooking RegisterClassEx and dll question Pin
Kuniva16-May-05 3:03
Kuniva16-May-05 3:03 

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.