Archived

This topic is now archived and is closed to further replies.

Vendayan

they eat my app

Recommended Posts

How do I make it sao that screensavers won''t tear my app apart? Im using DX (obviously or I wouldn''t have posted here right ) and Win98. Any ideas about how this can be fixed? ~Vendayan

Share this post


Link to post
Share on other sites
Try this in your WndProc()

  

case WM_SYSCOMMAND:////////////////////////////////// S C R E E N S A V E R //////

switch(wParam&0xfff0)
{
case SC_MONITORPOWER:
case SC_SCREENSAVE:
return(0);
break;
}
break;


It will stop screen savers or power saving been activated.

Share this post


Link to post
Share on other sites