Click here to Skip to main content
12,889,969 members (42,786 online)
Click here to Skip to main content
Add your own
alternative version


31 bookmarked
Posted 25 Oct 2002

A Complete Screen Saver Framework Using MFC

, 25 Oct 2002
Rate this:
Please Sign up or sign in to vote.
complete screen saver framework with an installation program.
<!-- Download Links --> <!-- Add the rest of your HTML here -->


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!


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Chen Su
Software Developer
Canada Canada
No Biography provided

You may also be interested in...


Comments and Discussions

Generalupdate for VS 2003 Pin
Jim Dill15-Jun-07 4:04
memberJim Dill15-Jun-07 4:04 
GeneralProgram not compiling Pin
Adeel68823-May-06 20:32
memberAdeel68823-May-06 20:32 
GeneralRe: Program not compiling Pin
Chen Su24-May-06 6:40
memberChen Su24-May-06 6:40 
GeneralNice little framework Pin
reggie758-Feb-06 9:50
memberreggie758-Feb-06 9:50 
GeneralNice FrameWork! Pin
ThatsAlok6-Jul-05 2:30
memberThatsAlok6-Jul-05 2:30 
Generalscreen saver &amp; Flash animation Pin
_roh_26-Sep-03 2:12
member_roh_26-Sep-03 2:12 
GeneralCenter of screen and screen depth Pin
joelparker17-Sep-03 13:32
memberjoelparker17-Sep-03 13:32 
GeneralRe: Center of screen and screen depth Pin
Chen Su17-Sep-03 17:07
memberChen Su17-Sep-03 17:07 
Generalinstall Pin
glowas12-May-03 9:59
memberglowas12-May-03 9:59 
GeneralBrowser Pin
glowas10-May-03 12:00
memberglowas10-May-03 12:00 
GeneralRe: Browser Pin
Chen Su10-May-03 18:32
memberChen Su10-May-03 18:32 
GeneralRe: Browser Pin
glowas12-May-03 4:34
memberglowas12-May-03 4:34 
GeneralRe: Browser Pin
glowas12-May-03 5:39
memberglowas12-May-03 5:39 
GeneralRe: Browser Pin
Chen Su12-May-03 8:23
memberChen Su12-May-03 8:23 
GeneralRe: Browser Pin
glowas12-May-03 8:28
memberglowas12-May-03 8:28 
GeneralRe: Browser Pin
glowas12-May-03 8:26
memberglowas12-May-03 8:26 
GeneralRe: Browser Pin
Chen Su12-May-03 8:41
memberChen Su12-May-03 8:41 
GeneralRe: Browser Pin
glowas12-May-03 9:56
memberglowas12-May-03 9:56 
GeneralRe: Browser Pin
Chen Su12-May-03 10:07
memberChen Su12-May-03 10:07 
GeneralRe: Browser Pin
glowas13-May-03 4:06
memberglowas13-May-03 4:06 
GeneralAbout DLL Pin
scrraja21-Feb-03 1:00
memberscrraja21-Feb-03 1:00 
GeneralRe: About DLL Pin
Chen Su21-Feb-03 6:56
memberChen Su21-Feb-03 6:56 
QuestionChange file name from saver.scr to another? Pin
Anonymous27-Jan-03 5:44
sussAnonymous27-Jan-03 5:44 
AnswerRe: Change file name from saver.scr to another? Pin
Chen Su27-Jan-03 18:38
memberChen Su27-Jan-03 18:38 
Generaldisplaye control in screensaver Pin
quzi20-Nov-02 23:20
memberquzi20-Nov-02 23:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170424.1 | Last Updated 26 Oct 2002
Article Copyright 2002 by Chen Su
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid