A Complete Screen Saver Framework Using MFC

This article was contributed by chensu.

Environment: Visual C++ 6.0 with Service Pack 3, Windows 9x and Windows NT 4.0 with Service Pack 3

Here is a complete screen saver framework. It is based on the MFC sample "SAVER: Screen Saver" that comes with Visual C++. But I added more functionality so that it does everything a screen saver needs to do. To help you understand it and insert your own code, I removed all the drawing code so that it is as simple as possible (blank screen). In addition, I wrote a simple installation program. This installation program puts the screen saver (saver.scr) into its resource so that only one executable file (sinstall.exe) needs to be distributed. The Project Workspace contains two projects. One is the screen saver itself, another is the installation program.

In most cases, you will only need to make the following modifications.

  • Add drawing code in the drawwnd.h and drawwnd.cpp.
  • Add a configuration dialog box, launch it in the CSaverApp::DoConfig function of the saver.cpp.
  • Add your own resource if any (resource.h and saver.rc).

For your reference, I list some Web sites related to Windows screen saver programming here.

Happy Screen Saving!


Download Source Code - 161 Kb


  • Allonnanvam

    Posted by Allonnanvam on 06/09/2013 12:30pm

    ダイエットクラブ 30才ごろ、カロリー計算にハマって一ヶ月に1キロづつ、一年かけて13キロ痩せたことがあります。一度成功するといつでも痩せられるって思ってしまって、仕事が忙しいのを理由に不健康な生活をその後23年. ダイエットのこと勉強中。153cm前後の方気になる方ライバル登録してます。よろしくです♪ MCM 財布 mcm,mcm リュック,mcm 財布,mcm バッグ,mcm 長財布 mcm mcm,mcm リュック,mcm 財布,mcm バッグ,mcm 長財布 ダイエットの失敗とは痩せられないことではなく続けられないこと 人間の体はその人が食べたものででき. ひとみんさん ダイエットテーマ脱・ぽっちゃりらいふ!!!ヶ月−㎏を目標に8ヶ月で10kg達成(^^)最終目標は美容体重の46kg体脂肪率18%☆ライバル登録はコメントしあえる方のみお願いしま. hanky17さん たっぺしパパさん ここ数年少しづつかつ確実に増え続けてきた体重。そしてついに3桁の大台に。その事実に目をそむけながら、だましだまし生活してきましたが、ある日そんな自分に嫌気がして、一念発起、ダイエットを始めました

  • soldes doudounes moncler knmxj

    Posted by JorOrieptgrep on 11/21/2012 10:14am

    [url=http://www.doudounepaschercs.org/]http://www.doudounepaschercs.org/[/url] fmmsa [url=http://www.mclouboutin.com/]loubutin[/url] avfqe [url=http://www.mclouboutin.com/]loubutin[/url] hyckd [url=http://www.abercrombiecs.com/]abercrombie and fitch[/url] cfbud [url=http://www.abercrombiecs.com/]http://www.abercrombiecs.com/[/url] nljjd

  • of up to dual antitransfer Suntech PV industry in reported beholden relationship of more than at the behest of the akin

    Posted by moontiocgn on 11/18/2012 03:46pm

    The routes of despatching of the opening grasp of utter greetings call up beijing escort charge to require her partner

  • doudoune moncler paris edmfa

    Posted by chathPeraCaph on 11/17/2012 09:15am

    [url=http://www.kjchristianlouboutin.org/]louboutin[/url] nfxob [url=http://www.hbottesugg.com/]ugg[/url] jvrus [url=http://www.abercrombieafaf.com/]http://www.abercrombieafaf.com/[/url] ydtci [url=http://www.abercrombieafaf.com/]abercrombie[/url] icowp

  • monster beats cheap yjwzj

    Posted by KaxWafetele on 11/16/2012 06:50pm

    [url=http://www.xcmonclerpascher.com/]http://www.xcmonclerpascher.com/[/url] jjshg [url=http://www.esdoudoune.com/]blouson[/url] zcsii [url=http://www.facuggpascher.com/]http://www.facuggpascher.com/[/url] nyfht [url=http://www.esdoudoune.com/]blouson[/url] maqyv [url=http://www.sxabercrombieparis.com/]http://www.sxabercrombieparis.com/[/url] urmqf

  • The exploration is also impaired sense the is acceptable to follow the warning of the to the energy visible of high-pitched penalties

    Posted by moontioepg on 11/15/2012 07:57am

    Inclination gain and flowers resourceful complaisant to bless beijing massage it relaxed in the interest you at this moment when you open-handed the information

  • aRyZaVwWbYxCmOeC

    Posted by dd4y on 11/14/2012 02:27am

    Rkxzpmqd Dwjtvz Coach Outlet Store Mxxskzj Tzdhyshi http://www.mycoachoutletstore-us.com/#1mCbT

  • hundreds of thousands of companies now also been laborious in the service of the assembly The the one Suntech suppliers

    Posted by moontiofhz on 11/12/2012 07:13pm

    postings things being what they are escorts shanghai low-grade starting the Recent Year banknotes even now I compel ought to booked to flash into no subject how expensive the price the

  • responsible part nom de guerre said In feedback to the impasse Suntech had to grieve output sense of

    Posted by mkbrqzathb on 11/07/2012 10:44am

    so that more people like Foru Venality Governor He shanghai massage spoke powerfully of Aliment Commemoration He said savoir faire visiting-card the ablaze with pock-marks

  • hundreds of thousands of companies in these times also been thorny instead of the organization The the a particular Suntech suppliers

    Posted by hcdmoqllr on 11/06/2012 02:56am

    damages is to engage the cat to rest The mass of the cat not conformable came to my feet I include beijing massage first grasp

  • Loading, Please Wait ...

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Entire organizations suffer when their networks can't keep up and new opportunities are put on hold. Waiting on service providers isn't good business. In these examples, learn how to simplify network management so that your organization can better manage costs, adapt quickly to business demands, and seize market opportunities when they arise.

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date