03-06-2013 07:47 AM
Hi Luis,
Thanks for your reply.
GetSystemMetrics (SM_CXVIRTUALSCREEN) return 1920
GetSystemMetrics (SM_CYVIRTUALSCREEN) return 1080
They return the setting resolution of my graphic card (the same of my monitor).
Do you have tryed the sample code attached previous?
03-06-2013 07:53 AM
... for completeness, in my case GetSystemMetrics (SM_CXVIRTUALSCREEN) returns 1600.
03-06-2013 08:03 AM - edited 03-06-2013 08:03 AM
Just out of curiosity I made some trials and here are the results.
With this code:
DebugPrintf ("Virtual screen size: %d\n", GetSystemMetrics (SM_CXVIRTUALSCREEN));
GetPanelAttribute (panelHandle, ATTR_WIDTH, &pw);
DebugPrintf ("Actual panel width: %d\n", pw);
SetPanelAttribute (panelHandle, ATTR_WIDTH, 10000);
GetPanelAttribute (panelHandle, ATTR_WIDTH, &pw);
DebugPrintf ("Max panel width: %d\n", pw);
I obtained these results:
Virtual screen size: 1680 Actual panel width: 1024 Max panel width: 3354
BTW, 1680 is the actual resolution of my display.
03-06-2013 08:06 AM
OK,
From my first post I changed the monitor with a full-HD (1920x1080 mentioned above), so my new limit panel width is 3824, exactly twice my current horizontal resolution.
The maximum panel width is twice the horizontal resolution.
03-07-2013 07:49 AM
I think the maximum width might also depend on the current position of the panel, but I'm not completely sure.
I'm sorry that I'm not providing exact details on how the maximum width is computed, but the short answer is that I don't know what they are.
Luis