home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics Programming Black Book (Special Edition)
/
BlackBook.bin
/
disk1
/
source
/
chapterh
/
lh-1.c
Wrap
Text File
|
1997-06-18
|
586b
|
27 lines
//
// Disables screen saver
//
LRESULT CALLBACK ToplevelWIndowProc(HWND hWnd, UINT uMsg,
WPARAM wParam, LPARAM lParam)
{
switch (uMsg)
{
case WM_SYSCOMMAND:
switch (wParam & ~0x0F)
{
case SC_SCREENSAVE:
case SC_MONITORPOWER:
//
// Don't call DefWindowProc() or
// it will start the screen saver
//
return 0;
}
// :
// other cases
// :
}
}