15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Screensaver w/MFC?

Deepak Saxena -- Deepak_Saxena@ccm.ch.intel.com
Monday, April 08, 1996

MSVC 4.0, WinNt351

I want to develop a screen saver app using MFC instead of the 
standard ScreenSaverProc() method of handling things.  What I was 
thinking of doing was adding a global CWnd-derived pointer and then 
calling CWnd::FromHandlePermanent() inside my ScreenSaverProc() so 
that my CWnd object will deal with all the messages.  The same could 
be done with my dialog class.  My only question...how do I get 
classwizard to be available inside a non-mfc appwizard project?  


-- 
Deepak_Saxena@ccm.ch.intel.com         | On June 30, 1996:
http://cernan.ecn.purdue.edu/~deepak   |     The Electronic Freedom 
Home:(602)812-8933, Work:(602)554-1304 |       March On Washington      
My opinions, not Intel's!              | http://www.efm.org



Elliott Kleinrock -- ELLIOTT@flexi.com
Thursday, April 11, 1996


While class wizard is a very useful tool, it does nothing magic to your
project, all it does is write code for you. So you can add the code to
another dummy project and then paste the generated code into your project.
Or, you could just figure out what code you need and write it.
However, the code class wizard generates is MFC, so if you want
it in a non-MFC project, you may have to copy the MFC code into your
project also, and if you are dealing with the message map, good luck.

     - Elliott
 ----------
From: owner-mfc-l
To: mfc-l
Subject: Screensaver w/MFC?
Date: Monday, April 08, 1996 4:06PM

MSVC 4.0, WinNt351

I want to develop a screen saver app using MFC instead of the
standard ScreenSaverProc() method of handling things.  What I was
thinking of doing was adding a global CWnd-derived pointer and then
calling CWnd::FromHandlePermanent() inside my ScreenSaverProc() so
that my CWnd object will deal with all the messages.  The same could
be done with my dialog class.  My only question...how do I get
classwizard to be available inside a non-mfc appwizard project?


 --
Deepak_Saxena@ccm.ch.intel.com         | On June 30, 1996:
http://cernan.ecn.purdue.edu/~deepak   |     The Electronic Freedom
Home:(602)812-8933, Work:(602)554-1304 |       March On Washington
My opinions, not Intel's!              | http://www.efm.org



nicholsr@ix.netcom.com
Sunday, April 14, 1996

MSVC 4.2 WinNT 4.0 Win95
A quick point...
Have you looked in the MSDN? Nigel Thompson shows how to an animated =
(256 color) screen save in MFC. He also explains why you don't need the =
screen saver library.

Richard A. Nichols

----------
From: 	Elliott Kleinrock[SMTP:ELLIOTT@flexi.com]
Sent: 	Thursday, April 11, 1996 2:45 AM
To: 	mfc-l
Cc: 	'Deepak_Saxena@ccm.ch.intel.com'
MSVC 4.0, WinNt351
Subject: 	RE: Screensaver w/MFC?


While class wizard is a very useful tool, it does nothing magic to your
project, all it does is write code for you. So you can add the code to
another dummy project and then paste the generated code into your =
project.
Or, you could just figure out what code you need and write it.
However, the code class wizard generates is MFC, so if you want
it in a non-MFC project, you may have to copy the MFC code into your
project also, and if you are dealing with the message map, good luck.

     - Elliott
 ----------
From: owner-mfc-l
To: mfc-l
Subject: Screensaver w/MFC?
Date: Monday, April 08, 1996 4:06PM

MSVC 4.0, WinNt351

I want to develop a screen saver app using MFC instead of the
standard ScreenSaverProc() method of handling things.  What I was
thinking of doing was adding a global CWnd-derived pointer and then
calling CWnd::FromHandlePermanent() inside my ScreenSaverProc() so
that my CWnd object will deal with all the messages.  The same could
be done with my dialog class.  My only question...how do I get
classwizard to be available inside a non-mfc appwizard project?


 --
Deepak_Saxena@ccm.ch.intel.com         | On June 30, 1996:
http://cernan.ecn.purdue.edu/~deepak   |     The Electronic Freedom
Home:(602)812-8933, Work:(602)554-1304 |       March On Washington
My opinions, not Intel's!              | http://www.efm.org



manoj.malhotra@corp.efi.com
Wednesday, April 17, 1996

Just my 2 cents on this. 
I recently had to write a screen saver for Win95, & also support the
"Password option" in the screen saver. I tried with the MSDN (MFC) sample
but there is no way to enable password usage. In fact with the sample u
click on the Password button and nothing happens.
So finally i had to go back to the screen saver library to allow the default
password option to work under Win 95.

-Manoj Malhotra
At 03:32 PM 4/14/96 -0700, you wrote:
>MSVC 4.2 WinNT 4.0 Win95
>A quick point...
>Have you looked in the MSDN? Nigel Thompson shows how to an animated =
>(256 color) screen save in MFC. He also explains why you don't need the =
>screen saver library.
>
>Richard A. Nichols
>
>----------
>From: 	Elliott Kleinrock[SMTP:ELLIOTT@flexi.com]
>Sent: 	Thursday, April 11, 1996 2:45 AM
>To: 	mfc-l
>Cc: 	'Deepak_Saxena@ccm.ch.intel.com'
>MSVC 4.0, WinNt351
>Subject: 	RE: Screensaver w/MFC?
>
>
>While class wizard is a very useful tool, it does nothing magic to your
>project, all it does is write code for you. So you can add the code to
>another dummy project and then paste the generated code into your =
>project.
>Or, you could just figure out what code you need and write it.
>However, the code class wizard generates is MFC, so if you want
>it in a non-MFC project, you may have to copy the MFC code into your
>project also, and if you are dealing with the message map, good luck.
>
>     - Elliott
> ----------
>From: owner-mfc-l
>To: mfc-l
>Subject: Screensaver w/MFC?
>Date: Monday, April 08, 1996 4:06PM
>
>MSVC 4.0, WinNt351
>
>I want to develop a screen saver app using MFC instead of the
>standard ScreenSaverProc() method of handling things.  What I was
>thinking of doing was adding a global CWnd-derived pointer and then
>calling CWnd::FromHandlePermanent() inside my ScreenSaverProc() so
>that my CWnd object will deal with all the messages.  The same could
>be done with my dialog class.  My only question...how do I get
>classwizard to be available inside a non-mfc appwizard project?
>
>
> --
>Deepak_Saxena@ccm.ch.intel.com         | On June 30, 1996:
>http://cernan.ecn.purdue.edu/~deepak   |     The Electronic Freedom
>Home:(602)812-8933, Work:(602)554-1304 |       March On Washington
>My opinions, not Intel's!              | http://www.efm.org
>
                             \|||/	 "Power down mode, Energy*,
     Zzzzzzzzz               (- -)        EPA pollution preventer."
_______________________________U_oOOo__________________________________________





| Вернуться в корень Архива |