首页/技术开发/内容

用C++Builder 5开发Windows下的屏保

技术开发2023-12-25 阅读()
SWP_NOSIZE);
    //时窗口覆盖屏幕
    this->Width=Screen->Width;
    this->Height=Screen->Height;
    this->Top=0;
    this->Left=0;
    Version=GetVersion();
    TRegistry *Registry = new TRegistry;
  try
  {
    if(Version>0x80000000){
    Registry->RootKey =HKEY_CURRENT_USER;
    Registry->OpenKey("\\Control Panel\\Desktop",false);
    PWProtect=Registry->ReadInteger("ScreenSaveUsePassword");//检测是否密码保护
    Registry->CloseKey();}
    Registry->RootKey =HKEY_CURRENT_USER;
    Registry->OpenKey("\\Software\\CODEHUNTER", true);
    picdir=Registry->ReadString("PicDir");//得到图片目录
    frequence=Registry->ReadInteger("frequence");//得到图像显示的频率
    if(picdir=="")picdir="no";
    if(frequence<0(北联网教程,专业提供视频软件下载)

第1页  第2页  第3页  第4页  第5页  第6页  第7页 

……

相关阅读