DEVMODE mydevmode;
mydevmode.dmBitsPerPel = 16;
mydevmode.dmFields = DM_BITSPERPEL;
long rc = ChangeDisplaySettings( &mydevmode, CDS_FULLSCREEN);
if (rc == DISP_CHANGE_SUCCESSFUL)
{
AfxMessageBox("成功", MB_OK);
}
DEVMODE mydevmode;
mydevmode.dmBitsPerPel = 16;
mydevmode.dmFields = DM_BITSPERPEL;
long rc = ChangeDisplaySettings( &mydevmode, CDS_FULLSCREEN);
if (rc == DISP_CHANGE_SUCCESSFUL)
{
AfxMessageBox("成功", MB_OK);
}