|
-
January 20th, 2003, 07:54 AM
#1
Changing Display Configuration
Hi,
I am mot a C developer, but I try to write * little program that change display configuration settings. I use Win32 API Function:
ChangeDisplaySettings . The return code is SUCCESSFULL but nothing changes on my computer! Someone have an idea?
DEVMODE DevM;
int RetCode;
DevM.dmSize = sizeof(DEVMODE);
DevM.dmDriverExtra=0;
if (0 == EnumDisplaySettings(NULL, ENUM_REGISTRY_SETTINGS, &DevM)) return 1;
DevM.dmFields = DM_BITSPERPEL || DM_PELSWIDTH || DM_PELSHEIGHT;
DevM.dmBitsPerPel = 32;
RetCode = ChangeDisplaySettings(&DevM,CDS_UPDATEREGISTRY || CDS_GLOBAL);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|