我知道用ChangeDisplaySettings这个API可以修改,不过用重启后就还原了
根本就没有保存到注册表里去
我想问下还有其他方法来改变分辨率,并且保存重启不还原的方法吗?
谢谢

解决方案 »

  1.   

    http://topic.csdn.net/t/20060113/09/4514174.html把ChangeDisplaySettings(CurrentSetting,0)   
    改成ChangeDisplaySettings(CurrentSetting,CDS_UPDATEREGISTRY)   
        
      CDS_UPDATEREGISTRY在MSDN中的定义为:   
      The   graphics   mode   for   the   current   screen   will   be   changed   dynamically   and   the   graphics   mode   will   be   updated   in   the   registry.   The   mode   information   is   stored   in   the   USER   profile.
      

  2.   

    if   (ChangeDisplaySettings(lpDevMode,   CDS_UPDATEREGISTRY)   ==   DISP_CHANGE_SUCCESSFUL)