Click here to Skip to main content
15,897,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: video streaming "download and play" Pin
ACMTino19-Dec-05 2:11
ACMTino19-Dec-05 2:11 
QuestionCreating a window based on Dialog Template Pin
André RB18-Dec-05 12:18
André RB18-Dec-05 12:18 
AnswerRe: Creating a window based on Dialog Template Pin
PJ Arends18-Dec-05 12:33
professionalPJ Arends18-Dec-05 12:33 
QuestionGet window handle? Pin
Lord Kixdemp18-Dec-05 12:01
Lord Kixdemp18-Dec-05 12:01 
AnswerRe: Get window handle? Pin
PJ Arends18-Dec-05 12:23
professionalPJ Arends18-Dec-05 12:23 
GeneralRe: Get window handle? Pin
Lord Kixdemp18-Dec-05 13:47
Lord Kixdemp18-Dec-05 13:47 
GeneralRe: Get window handle? Pin
Lord Kixdemp18-Dec-05 16:36
Lord Kixdemp18-Dec-05 16:36 
QuestionHow to detect screen saver Pin
PJ Arends18-Dec-05 12:00
professionalPJ Arends18-Dec-05 12:00 
I have an app which always runs in the background (main window is hidden) and it's only visible cue to the user is an animated icon on the task bar. The icon is animated when the app is actively polling for information, and static when the app is running but no polling is taking place. Now according to the task manager my app is running the CPU at about 20% just to animate the icon. This is not so bad when the user is sitting at the computer but the app is designed to run 24/7 so I would really like to be able to stop the animated icon when the user is not there to see it (screen saver starting and or monitor turning off) and start it again when the user is there (screen saver stops and/or monitor turns on).

Is there a way to detect the screen saver starting and stopping or the monitor turning off and on from an app that is not the currently active app? WM_SYSCOMMAND with SC_SCREENSAVE is only recognized by the active app when the screen saver starts, not when it stops.



"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04

"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05

Within you lies the power for good - Use it!
AnswerRe: How to detect screen saver Pin
Owner drawn18-Dec-05 18:21
Owner drawn18-Dec-05 18:21 
GeneralRe: How to detect screen saver Pin
PJ Arends18-Dec-05 20:42
professionalPJ Arends18-Dec-05 20:42 
QuestionMemory assertion with std::vector .. Pin
selecta18-Dec-05 8:49
selecta18-Dec-05 8:49 
AnswerRe: Memory assertion with std::vector .. Pin
Jörgen Sigvardsson18-Dec-05 8:56
Jörgen Sigvardsson18-Dec-05 8:56 
GeneralRe: Memory assertion with std::vector .. Pin
selecta18-Dec-05 10:25
selecta18-Dec-05 10:25 
GeneralRe: Memory assertion with std::vector .. Pin
Jörgen Sigvardsson18-Dec-05 10:29
Jörgen Sigvardsson18-Dec-05 10:29 
GeneralRe: Memory assertion with std::vector .. Pin
selecta18-Dec-05 11:03
selecta18-Dec-05 11:03 
GeneralRe: Memory assertion with std::vector .. Pin
Jörgen Sigvardsson18-Dec-05 11:15
Jörgen Sigvardsson18-Dec-05 11:15 
GeneralRe: Memory assertion with std::vector .. Pin
selecta18-Dec-05 11:23
selecta18-Dec-05 11:23 
GeneralRe: Memory assertion with std::vector .. Pin
Jörgen Sigvardsson18-Dec-05 11:30
Jörgen Sigvardsson18-Dec-05 11:30 
GeneralRe: Memory assertion with std::vector .. Pin
PJ Arends18-Dec-05 12:17
professionalPJ Arends18-Dec-05 12:17 
GeneralRe: Memory assertion with std::vector .. Pin
selecta18-Dec-05 13:24
selecta18-Dec-05 13:24 
QuestionHow to interface PC Addon Cards using vc++ Pin
sreewiz18-Dec-05 6:24
sreewiz18-Dec-05 6:24 
QuestionOverride ListCtrl automatic horizontal scrolling on Left/Right KeyDown Pin
Maverick18-Dec-05 4:59
Maverick18-Dec-05 4:59 
QuestionPublishing an Visual C++ Exe Pin
Tazzu18-Dec-05 4:12
Tazzu18-Dec-05 4:12 
QuestionDetecting 3rd party firewall Pin
vinoth355618-Dec-05 1:08
vinoth355618-Dec-05 1:08 
QuestionIterators, NULL and Visual Studio 2005 Pin
Franz Klein17-Dec-05 23:06
Franz Klein17-Dec-05 23:06 

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

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