Click here to Skip to main content
Click here to Skip to main content

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 -->

Introduction

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!

License

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

Comments and Discussions

 
Generalupdate for VS 2003 PinmemberJim Dill15-Jun-07 4:04 
GeneralProgram not compiling PinmemberAdeel68823-May-06 20:32 
GeneralRe: Program not compiling PinmemberChen Su24-May-06 6:40 
GeneralNice little framework Pinmemberreggie758-Feb-06 9:50 
GeneralNice FrameWork! PinmemberThatsAlok6-Jul-05 2:30 
Generalscreen saver &amp; Flash animation Pinmember_roh_26-Sep-03 2:12 
GeneralCenter of screen and screen depth Pinmemberjoelparker17-Sep-03 13:32 
GeneralRe: Center of screen and screen depth PinmemberChen Su17-Sep-03 17:07 
Generalinstall Pinmemberglowas12-May-03 9:59 
GeneralBrowser Pinmemberglowas10-May-03 12:00 
GeneralRe: Browser PinmemberChen Su10-May-03 18:32 
GeneralRe: Browser Pinmemberglowas12-May-03 4:34 
GeneralRe: Browser Pinmemberglowas12-May-03 5:39 
GeneralRe: Browser PinmemberChen Su12-May-03 8:23 
GeneralRe: Browser Pinmemberglowas12-May-03 8:28 
GeneralRe: Browser Pinmemberglowas12-May-03 8:26 
GeneralRe: Browser PinmemberChen Su12-May-03 8:41 
GeneralRe: Browser Pinmemberglowas12-May-03 9:56 
GeneralRe: Browser PinmemberChen Su12-May-03 10:07 
GeneralRe: Browser Pinmemberglowas13-May-03 4:06 
GeneralAbout DLL Pinmemberscrraja21-Feb-03 1:00 
GeneralRe: About DLL PinmemberChen Su21-Feb-03 6:56 
QuestionChange file name from saver.scr to another? PinsussAnonymous27-Jan-03 5:44 
AnswerRe: Change file name from saver.scr to another? PinmemberChen Su27-Jan-03 18:38 
Generaldisplaye control in screensaver Pinmemberquzi20-Nov-02 23:20 
GeneralRe: displaye control in screensaver PinmemberChen Su21-Nov-02 7:49 

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

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

| Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 26 Oct 2002
Article Copyright 2002 by Chen Su
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid