balakiran_bs
asked on
Display resolution
how to change the Display resolution
using an MFC program ??
From the Settings tab of Desktop
properties, we can set the display
resolution. I want to do the same
programatically.
plz suggest the solution.
using an MFC program ??
From the Settings tab of Desktop
properties, we can set the display
resolution. I want to do the same
programatically.
plz suggest the solution.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I know exactly that my link gives working solution.
The code I posted is from a VC sample which is how to change the display resolution.
you want to look at ChangeDisplaySettings
eg
if (EnumDisplaySettings(NULL,
{
DEVMODE DisplayMode = m_CurDisplayMode;
DisplayMode.dmPelsWidth = 640;
DisplayMode.dmPelsHeight = 480;
ChangeDisplaySettings(&Dis
}