Click here to Skip to main content
Licence 
First Posted 25 Oct 2002
Views 83,306
Bookmarked 30 times

A Complete Screen Saver Framework Using MFC

By | 25 Oct 2002 | Article
complete screen saver framework with an installation program.

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

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Generalupdate for VS 2003 PinmemberJim Dill4:04 15 Jun '07  
GeneralProgram not compiling PinmemberAdeel68820:32 23 May '06  
GeneralRe: Program not compiling PinmemberChen Su6:40 24 May '06  
GeneralNice little framework Pinmemberreggie759:50 8 Feb '06  
GeneralNice FrameWork! PinmemberThatsAlok2:30 6 Jul '05  
Generalscreen saver & Flash animation Pinmember_roh_2:12 26 Sep '03  
GeneralCenter of screen and screen depth Pinmemberjoelparker13:32 17 Sep '03  
GeneralRe: Center of screen and screen depth PinmemberChen Su17:07 17 Sep '03  
Generalinstall Pinmemberglowas9:59 12 May '03  
GeneralBrowser Pinmemberglowas12:00 10 May '03  
GeneralRe: Browser PinmemberChen Su18:32 10 May '03  
GeneralRe: Browser Pinmemberglowas4:34 12 May '03  
GeneralRe: Browser Pinmemberglowas5:39 12 May '03  
GeneralRe: Browser PinmemberChen Su8:23 12 May '03  
GeneralRe: Browser Pinmemberglowas8:28 12 May '03  
GeneralRe: Browser Pinmemberglowas8:26 12 May '03  
GeneralRe: Browser PinmemberChen Su8:41 12 May '03  
GeneralRe: Browser Pinmemberglowas9:56 12 May '03  
GeneralRe: Browser PinmemberChen Su10:07 12 May '03  
GeneralRe: Browser Pinmemberglowas4:06 13 May '03  
GeneralAbout DLL Pinmemberscrraja1:00 21 Feb '03  
GeneralRe: About DLL PinmemberChen Su6:56 21 Feb '03  
QuestionChange file name from saver.scr to another? PinsussAnonymous5:44 27 Jan '03  
AnswerRe: Change file name from saver.scr to another? PinmemberChen Su18:38 27 Jan '03  
Generaldisplaye control in screensaver Pinmemberquzi23:20 20 Nov '02  

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.

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